PHP 클래스 LeanMapper\Reflection\PropertyFactory

저자: Vojtěch Kohout
파일 보기 프로젝트 열기: tharos/leanmapper 1 사용 예제들

공개 메소드들

메소드 설명
__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