private function initializeObjectDataPolicies(PolicyIdListInterface $policies)
    {
        foreach ($policies->getPolicyIds() as $policyId) {
            $policy = $this->getSession()->getObject($this->getSession()->createObjectId($policyId));
            if ($policy instanceof PolicyInterface) {
                $this->policies[] = $policy;
            }
        }

        $this->extensions[(string) ExtensionLevel::POLICIES] = $policies->getExtensions();
    }
private function initializeObjectDataPolicies(PolicyIdListInterface $policies)
    {
        foreach ($policies->getPolicyIds() as $policyId) {
            $policy = $this->getSession()->getObject($this->getSession()->createObjectId($policyId));
            if ($policy instanceof PolicyInterface) {
                $this->policies[] = $policy;
            }
        }

        $this->extensions[(string) ExtensionLevel::POLICIES] = $policies->getExtensions();
    }
private function initializeObjectDataPolicies ( PolicyIdListInterface $ policies ) { foreach ( $ policies -> getPolicyIds ( ) as $ policyId ) { $ policy = $ this -> getSession ( ) -> getObject ( $ this -> getSession ( ) -> createObjectId ( $ policyId ) ) ; if ( $ policy instanceof PolicyInterface ) { $ this -> policies [ ] = $ policy ; } } $ this -> extensions [ ( string ) ExtensionLevel :: POLICIES ] = $ policies -> getExtensions ( ) ; }
Handle initialization of policies from the object data

@param PolicyIdListInterface $policies
Handle initialization of policies from the object data