TplBlock/vendor/jms/serializer/tests/Fixtures/ExclusionStrategy/AlwaysExcludeExclusionStrategy.php
2018-03-26 21:57:35 +02:00

22 lines
553 B
PHP

<?php
namespace JMS\Serializer\Tests\Fixtures\ExclusionStrategy;
use JMS\Serializer\Context;
use JMS\Serializer\Exclusion\ExclusionStrategyInterface;
use JMS\Serializer\Metadata\ClassMetadata;
use JMS\Serializer\Metadata\PropertyMetadata;
class AlwaysExcludeExclusionStrategy implements ExclusionStrategyInterface
{
public function shouldSkipClass(ClassMetadata $metadata, Context $context)
{
return true;
}
public function shouldSkipProperty(PropertyMetadata $property, Context $context)
{
return false;
}
}