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();
    }
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();
    }
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 ( ) ; }
Handle initialization for objectData

@param ObjectDataInterface $objectData
Handle initialization for objectData