Symfony\Component\Serializer\Tests\Normalizer\AbstractObjectNormalizerDummy::isAllowedAttribute PHP Метод

isAllowedAttribute() защищенный Метод

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'));
    }