original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Handle initialization of policies from the object data
  
  @param PolicyIdListInterface $policies
docstring_tokens: Handle initialization of policies from the object data