PHP Класс LeanMapper\Reflection\PropertyFactory

Автор: Vojtěch Kohout
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( )
createFromAnnotation ( string $annotationType, string $annotation, EntityReflection $entityReflection, LeanMapper\IMapper $mapper = null ) : Property Creates new Property instance from given annotation

Приватные методы

Метод Описание
createRelationship ( string $sourceClass, PropertyType $propertyType, string $relationshipType, string | null $definition = null, LeanMapper\IMapper $mapper = null ) : mixed
fixDefaultValue ( mixed $value, PropertyType $propertyType, boolean $isNullable ) : mixed
generateRandomString ( integer $length ) : string
getSurrogateRelationshipColumn ( PropertyType $propertyType ) : string
trimNamespace ( string $class ) : string

Описание методов

__construct() публичный Метод

public __construct ( )

createFromAnnotation() публичный статический Метод

Creates new Property instance from given annotation
public static createFromAnnotation ( string $annotationType, string $annotation, EntityReflection $entityReflection, LeanMapper\IMapper $mapper = null ) : Property
$annotationType string
$annotation string
$entityReflection EntityReflection
$mapper LeanMapper\IMapper
Результат Property