src/Represent/Builder/ClassContextBuilder.php
private function handleExclusionPolicy(\ReflectionClass $reflection, ClassContext $classContext)
    {
        $annot = $this->annotationReader->getClassAnnotation($reflection, '\Represent\Annotations\ExclusionPolicy');

        if (!is_null($annot) && $annot->getPolicy() === ExclusionPolicyEnum::BLACKLIST){
            $classContext->policy = ExclusionPolicyEnum::BLACKLIST;
            $classContext = $this->generatePropertiesForBlackList($reflection, $classContext);
        } else {
            $classContext->policy = ExclusionPolicyEnum::WHITELIST;
            $classContext = $this->generatePropertiesForWhiteList($reflection, $classContext);
        }

        return $classContext;
    }
private function handleExclusionPolicy(\ReflectionClass $reflection, ClassContext $classContext)
    {
        $annot = $this->annotationReader->getClassAnnotation($reflection, '\Represent\Annotations\ExclusionPolicy');

        if (!is_null($annot) && $annot->getPolicy() === ExclusionPolicyEnum::BLACKLIST){
            $classContext->policy = ExclusionPolicyEnum::BLACKLIST;
            $classContext = $this->generatePropertiesForBlackList($reflection, $classContext);
        } else {
            $classContext->policy = ExclusionPolicyEnum::WHITELIST;
            $classContext = $this->generatePropertiesForWhiteList($reflection, $classContext);
        }

        return $classContext;
    }
private function handleExclusionPolicy ( \ ReflectionClass $ reflection , ClassContext $ classContext ) { $ annot = $ this -> annotationReader -> getClassAnnotation ( $ reflection , '\Represent\Annotations\ExclusionPolicy' ) ; if ( ! is_null ( $ annot ) && $ annot -> getPolicy ( ) === ExclusionPolicyEnum :: BLACKLIST ) { $ classContext -> policy = ExclusionPolicyEnum :: BLACKLIST ; $ classContext = $ this -> generatePropertiesForBlackList ( $ reflection , $ classContext ) ; } else { $ classContext -> policy = ExclusionPolicyEnum :: WHITELIST ; $ classContext = $ this -> generatePropertiesForWhiteList ( $ reflection , $ classContext ) ; } return $ classContext ; }
Determines exclusion policy and hands off to the appropriate method. Defaults to white list
@param \ReflectionClass                $reflection
@param \Represent\Context\ClassContext $classContext
@return ClassContext
Determines exclusion policy and hands off to the appropriate method . Defaults to white list