original_string: public function convertPropertiesDataToPropertyList(
          ObjectTypeInterface $objectType,
          array $secondaryTypes,
          PropertiesInterface $properties
      ) {
          if (count($objectType->getPropertyDefinitions()) === 0) {
              throw new CmisInvalidArgumentException('Object type has no property definitions!');
          }
          if (count($properties->getProperties()) === 0) {
              throw new CmisInvalidArgumentException('Properties must be set');
          }
  
          // Iterate trough properties and convert them to Property objects
          $result = [];
          foreach ($properties->getProperties() as $propertyKey => $propertyData) {
              // find property definition
              $apiProperty = $this->convertProperty($objectType, $secondaryTypes, $propertyData);
              $result[$propertyKey] = $apiProperty;
          }
  
          return $result;
      }
code: public function convertPropertiesDataToPropertyList(
          ObjectTypeInterface $objectType,
          array $secondaryTypes,
          PropertiesInterface $properties
      ) {
          if (count($objectType->getPropertyDefinitions()) === 0) {
              throw new CmisInvalidArgumentException('Object type has no property definitions!');
          }
          if (count($properties->getProperties()) === 0) {
              throw new CmisInvalidArgumentException('Properties must be set');
          }
  
          // Iterate trough properties and convert them to Property objects
          $result = [];
          foreach ($properties->getProperties() as $propertyKey => $propertyData) {
              // find property definition
              $apiProperty = $this->convertProperty($objectType, $secondaryTypes, $propertyData);
              $result[$propertyKey] = $apiProperty;
          }
  
          return $result;
      }
code_tokens: public function convertPropertiesDataToPropertyList ( ObjectTypeInterface $ objectType , array $ secondaryTypes , PropertiesInterface $ properties ) { if ( count ( $ objectType -> getPropertyDefinitions ( ) ) === 0 ) { throw new CmisInvalidArgumentException ( 'Object type has no property definitions!' ) ; } if ( count ( $ properties -> getProperties ( ) ) === 0 ) { throw new CmisInvalidArgumentException ( 'Properties must be set' ) ; } // Iterate trough properties and convert them to Property objects $ result = [ ] ; foreach ( $ properties -> getProperties ( ) as $ propertyKey => $ propertyData ) { // find property definition $ apiProperty = $ this -> convertProperty ( $ objectType , $ secondaryTypes , $ propertyData ) ; $ result [ $ propertyKey ] = $ apiProperty ; } return $ result ; }
docstring: Convert Properties in Properties instance to a list of PropertyInterface objects
  
  @param ObjectTypeInterface $objectType
  @param SecondaryTypeInterface[] $secondaryTypes
  @param PropertiesInterface $properties
  @return PropertyInterface[]
  @throws CmisInvalidArgumentException
docstring_tokens: Convert Properties in Properties instance to a list of PropertyInterface objects