getTypeOfChildProperty() 공개 메소드

The type of a property is determined by the reflection service.
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string
$propertyName string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string
 /**
  * Convert the property "resource"
  *
  * @param string $targetType
  * @param string $propertyName
  * @param PropertyMappingConfigurationInterface $configuration
  * @return string
  */
 public function getTypeOfChildProperty($targetType, $propertyName, PropertyMappingConfigurationInterface $configuration)
 {
     switch ($propertyName) {
         case 'resource':
             return PersistentResource::class;
         case 'originalAsset':
             return Image::class;
         case 'title':
             return 'string';
     }
     return parent::getTypeOfChildProperty($targetType, $propertyName, $configuration);
 }