22 lines
553 B
PHP
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;
|
|
}
|
|
}
|