original_string: private function initializeObjectData(ObjectDataInterface $objectData)
      {
          // handle properties
          if ($objectData->getProperties() !== null) {
              $this->initializeObjectDataProperties($objectData->getProperties());
          }
  
          // handle allowable actions
          if ($objectData->getAllowableActions() !== null) {
              $this->allowableActions = $objectData->getAllowableActions();
              $this->extensions[(string) ExtensionLevel::cast(
                  ExtensionLevel::ALLOWABLE_ACTIONS
              )] = $objectData->getAllowableActions()->getExtensions();
          }
  
          // handle renditions
          foreach ($objectData->getRenditions() as $rendition) {
              $this->renditions[] = $this->getObjectFactory()->convertRendition($this->getId(), $rendition);
          }
  
          // handle ACL
          if ($objectData->getAcl() !== null) {
              $this->acl = $objectData->getAcl();
              $this->extensions[(string) ExtensionLevel::cast(ExtensionLevel::ACL)] = $objectData->getAcl(
              )->getExtensions();
          }
  
          // handle policies
          if ($objectData->getPolicyIds() !== null) {
              $this->initializeObjectDataPolicies($objectData->getPolicyIds());
          }
  
          // handle relationships
          foreach ($objectData->getRelationships() as $relationshipData) {
              $relationship = $this->getObjectFactory()->convertObject(
                  $relationshipData,
                  $this->getCreationContext()
              );
              if ($relationship instanceof RelationshipInterface) {
                  $this->relationships[] = $relationship;
              }
          }
  
          $this->extensions[(string) ExtensionLevel::OBJECT] = $objectData->getExtensions();
      }
code: private function initializeObjectData(ObjectDataInterface $objectData)
      {
          // handle properties
          if ($objectData->getProperties() !== null) {
              $this->initializeObjectDataProperties($objectData->getProperties());
          }
  
          // handle allowable actions
          if ($objectData->getAllowableActions() !== null) {
              $this->allowableActions = $objectData->getAllowableActions();
              $this->extensions[(string) ExtensionLevel::cast(
                  ExtensionLevel::ALLOWABLE_ACTIONS
              )] = $objectData->getAllowableActions()->getExtensions();
          }
  
          // handle renditions
          foreach ($objectData->getRenditions() as $rendition) {
              $this->renditions[] = $this->getObjectFactory()->convertRendition($this->getId(), $rendition);
          }
  
          // handle ACL
          if ($objectData->getAcl() !== null) {
              $this->acl = $objectData->getAcl();
              $this->extensions[(string) ExtensionLevel::cast(ExtensionLevel::ACL)] = $objectData->getAcl(
              )->getExtensions();
          }
  
          // handle policies
          if ($objectData->getPolicyIds() !== null) {
              $this->initializeObjectDataPolicies($objectData->getPolicyIds());
          }
  
          // handle relationships
          foreach ($objectData->getRelationships() as $relationshipData) {
              $relationship = $this->getObjectFactory()->convertObject(
                  $relationshipData,
                  $this->getCreationContext()
              );
              if ($relationship instanceof RelationshipInterface) {
                  $this->relationships[] = $relationship;
              }
          }
  
          $this->extensions[(string) ExtensionLevel::OBJECT] = $objectData->getExtensions();
      }
code_tokens: private function initializeObjectData ( ObjectDataInterface $ objectData ) { // handle properties if ( $ objectData -> getProperties ( ) !== null ) { $ this -> initializeObjectDataProperties ( $ objectData -> getProperties ( ) ) ; } // handle allowable actions if ( $ objectData -> getAllowableActions ( ) !== null ) { $ this -> allowableActions = $ objectData -> getAllowableActions ( ) ; $ this -> extensions [ ( string ) ExtensionLevel :: cast ( ExtensionLevel :: ALLOWABLE_ACTIONS ) ] = $ objectData -> getAllowableActions ( ) -> getExtensions ( ) ; } // handle renditions foreach ( $ objectData -> getRenditions ( ) as $ rendition ) { $ this -> renditions [ ] = $ this -> getObjectFactory ( ) -> convertRendition ( $ this -> getId ( ) , $ rendition ) ; } // handle ACL if ( $ objectData -> getAcl ( ) !== null ) { $ this -> acl = $ objectData -> getAcl ( ) ; $ this -> extensions [ ( string ) ExtensionLevel :: cast ( ExtensionLevel :: ACL ) ] = $ objectData -> getAcl ( ) -> getExtensions ( ) ; } // handle policies if ( $ objectData -> getPolicyIds ( ) !== null ) { $ this -> initializeObjectDataPolicies ( $ objectData -> getPolicyIds ( ) ) ; } // handle relationships foreach ( $ objectData -> getRelationships ( ) as $ relationshipData ) { $ relationship = $ this -> getObjectFactory ( ) -> convertObject ( $ relationshipData , $ this -> getCreationContext ( ) ) ; if ( $ relationship instanceof RelationshipInterface ) { $ this -> relationships [ ] = $ relationship ; } } $ this -> extensions [ ( string ) ExtensionLevel :: OBJECT ] = $ objectData -> getExtensions ( ) ; }
docstring: Handle initialization for objectData
  
  @param ObjectDataInterface $objectData
docstring_tokens: Handle initialization for objectData