W3cubDocs

/Symfony 4.1

DoctrineExtractor

class DoctrineExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface

Extracts data using Doctrine ORM and ODM metadata.

Methods

__construct(ClassMetadataFactory $classMetadataFactory)
string[]|null getProperties(string $class, array $context = array())

Gets the list of properties available for the given class.

Type[]|null getTypes(string $class, string $property, array $context = array())

Gets types of a property.

Details

__construct(ClassMetadataFactory $classMetadataFactory)

Parameters

ClassMetadataFactory $classMetadataFactory

string[]|null getProperties(string $class, array $context = array())

Gets the list of properties available for the given class.

Parameters

string $class
array $context

Return Value

string[]|null

Type[]|null getTypes(string $class, string $property, array $context = array())

Gets types of a property.

Parameters

string $class
string $property
array $context

Return Value

Type[]|null

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.html