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