PHP Class LeanMapper\Reflection\PropertyFactory

Author: Vojtěch Kohout
Show file Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
__construct ( )
createFromAnnotation ( string $annotationType, string $annotation, EntityReflection $entityReflection, LeanMapper\IMapper $mapper = null ) : Property Creates new Property instance from given annotation

Private Methods

Method Description
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

Method Details

__construct() public method

public __construct ( )

createFromAnnotation() public static method

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
return Property