Symfony\Component\Serializer\Tests\Normalizer\AbstractObjectNormalizerDummy::isAllowedAttribute PHP Method

isAllowedAttribute() protected method

protected isAllowedAttribute ( $classOrObject, $attribute, $format = null, array $context = [] )
$context array
    protected function isAllowedAttribute($classOrObject, $attribute, $format = null, array $context = array())
    {
        return in_array($attribute, array('foo', 'baz'));
    }