src/Represent/Builder/ClassContextBuilder.php
private function generatePropertiesForBlackList(\ReflectionClass $reflection, ClassContext $classContext)
    {
        $properties = $reflection->getProperties();
        $reader     = $this->annotationReader;

        array_walk(
            $properties,
            function ($property) use ($classContext, $reader) {
                $annotation = $reader->getPropertyAnnotation($property, '\Represent\Annotations\Show');
                if ($annotation) {
                    $classContext->properties[] = $property;
                }
            }
        );

        return $classContext;
    }
private function generatePropertiesForBlackList(\ReflectionClass $reflection, ClassContext $classContext)
    {
        $properties = $reflection->getProperties();
        $reader     = $this->annotationReader;

        array_walk(
            $properties,
            function ($property) use ($classContext, $reader) {
                $annotation = $reader->getPropertyAnnotation($property, '\Represent\Annotations\Show');
                if ($annotation) {
                    $classContext->properties[] = $property;
                }
            }
        );

        return $classContext;
    }
private function generatePropertiesForBlackList ( \ ReflectionClass $ reflection , ClassContext $ classContext ) { $ properties = $ reflection -> getProperties ( ) ; $ reader = $ this -> annotationReader ; array_walk ( $ properties , function ( $ property ) use ( $ classContext , $ reader ) { $ annotation = $ reader -> getPropertyAnnotation ( $ property , '\Represent\Annotations\Show' ) ; if ( $ annotation ) { $ classContext -> properties [ ] = $ property ; } } ) ; return $ classContext ; }
Decides what properties should be represented using the black list policy
@param \ReflectionClass                $reflection
@param \Represent\Context\ClassContext $classContext
@return ClassContext
Decides what properties should be represented using the black list policy