private function initializeObjectDataProperties(PropertiesInterface $properties)
    {
        // get secondary types
        $propertyList = $properties->getProperties();
        if (isset($propertyList[PropertyIds::SECONDARY_OBJECT_TYPE_IDS])) {
            $this->secondaryTypes = [];
            foreach ($propertyList[PropertyIds::SECONDARY_OBJECT_TYPE_IDS]->getValues() as $secondaryTypeId) {
                $type = $this->getSession()->getTypeDefinition($secondaryTypeId);
                if ($type instanceof SecondaryTypeInterface) {
                    $this->secondaryTypes[] = $type;
                }
            }
        }

        $this->properties = $this->getObjectFactory()->convertPropertiesDataToPropertyList(
            $this->getObjectType(),
            (array) $this->getSecondaryTypes(),
            $properties
        );

        $this->extensions[(string) ExtensionLevel::cast(
            ExtensionLevel::PROPERTIES
        )] = $properties->getExtensions();
    }
private function initializeObjectDataProperties(PropertiesInterface $properties)
    {
        // get secondary types
        $propertyList = $properties->getProperties();
        if (isset($propertyList[PropertyIds::SECONDARY_OBJECT_TYPE_IDS])) {
            $this->secondaryTypes = [];
            foreach ($propertyList[PropertyIds::SECONDARY_OBJECT_TYPE_IDS]->getValues() as $secondaryTypeId) {
                $type = $this->getSession()->getTypeDefinition($secondaryTypeId);
                if ($type instanceof SecondaryTypeInterface) {
                    $this->secondaryTypes[] = $type;
                }
            }
        }

        $this->properties = $this->getObjectFactory()->convertPropertiesDataToPropertyList(
            $this->getObjectType(),
            (array) $this->getSecondaryTypes(),
            $properties
        );

        $this->extensions[(string) ExtensionLevel::cast(
            ExtensionLevel::PROPERTIES
        )] = $properties->getExtensions();
    }
private function initializeObjectDataProperties ( PropertiesInterface $ properties ) { // get secondary types $ propertyList = $ properties -> getProperties ( ) ; if ( isset ( $ propertyList [ PropertyIds :: SECONDARY_OBJECT_TYPE_IDS ] ) ) { $ this -> secondaryTypes = [ ] ; foreach ( $ propertyList [ PropertyIds :: SECONDARY_OBJECT_TYPE_IDS ] -> getValues ( ) as $ secondaryTypeId ) { $ type = $ this -> getSession ( ) -> getTypeDefinition ( $ secondaryTypeId ) ; if ( $ type instanceof SecondaryTypeInterface ) { $ this -> secondaryTypes [ ] = $ type ; } } } $ this -> properties = $ this -> getObjectFactory ( ) -> convertPropertiesDataToPropertyList ( $ this -> getObjectType ( ) , ( array ) $ this -> getSecondaryTypes ( ) , $ properties ) ; $ this -> extensions [ ( string ) ExtensionLevel :: cast ( ExtensionLevel :: PROPERTIES ) ] = $ properties -> getExtensions ( ) ; }
Handle initialization of properties from the object data

@param PropertiesInterface $properties
Handle initialization of properties from the object data