DoctrineExtractor
in package
implements
PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface
Extracts data using Doctrine ORM and ODM metadata.
Tags
Table of Contents
Interfaces
- PropertyListExtractorInterface
- Extracts the list of properties available for the given class.
- PropertyTypeExtractorInterface
- Type Extractor Interface.
- PropertyAccessExtractorInterface
- Guesses if the property can be accessed or mutated.
Properties
- $entityManager : mixed
Methods
- __construct() : mixed
- getProperties() : array<string|int, string>|null
- Gets the list of properties available for the given class.
- getTypes() : array<string|int, Type>|null
- Gets types of a property.
- isReadable() : bool|null
- Is the property readable?
- isWritable() : bool|null
- Is the property writable?
- getMetadata() : ClassMetadata|null
- getPhpType() : string|null
- Gets the corresponding built-in PHP type.
- isAssociationNullable() : bool
- Determines whether an association is nullable.
Properties
$entityManager
private
mixed
$entityManager
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager) : mixed
Parameters
- $entityManager : EntityManagerInterface
getProperties()
Gets the list of properties available for the given class.
public
getProperties(string $class[, array<string|int, mixed> $context = [] ]) : array<string|int, string>|null
Parameters
- $class : string
- $context : array<string|int, mixed> = []
Return values
array<string|int, string>|nullgetTypes()
Gets types of a property.
public
getTypes(string $class, string $property[, array<string|int, mixed> $context = [] ]) : array<string|int, Type>|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
array<string|int, Type>|nullisReadable()
Is the property readable?
public
isReadable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
bool|nullisWritable()
Is the property writable?
public
isWritable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
bool|nullgetMetadata()
private
getMetadata(string $class) : ClassMetadata|null
Parameters
- $class : string
Return values
ClassMetadata|nullgetPhpType()
Gets the corresponding built-in PHP type.
private
getPhpType(string $doctrineType) : string|null
Parameters
- $doctrineType : string
Return values
string|nullisAssociationNullable()
Determines whether an association is nullable.
private
isAssociationNullable(array<string|int, mixed> $associationMapping) : bool
Parameters
- $associationMapping : array<string|int, mixed>