ConstructorExtractor
in package
implements
PropertyTypeExtractorInterface
FinalYes
Extracts the constructor argument type using ConstructorArgumentTypeExtractorInterface implementations.
Tags
Table of Contents
Interfaces
- PropertyTypeExtractorInterface
- Type Extractor Interface.
Properties
- $extractors : iterable<string|int, mixed>
Methods
- __construct() : mixed
- getType() : Type|null
- getTypes() : array<string|int, Type>|null
- Gets types of a property.
Properties
$extractors read-only
private
iterable<string|int, mixed>
$extractors
= []
Methods
__construct()
public
__construct([iterable<int, ConstructorArgumentTypeExtractorInterface> $extractors = [] ]) : mixed
Parameters
- $extractors : iterable<int, ConstructorArgumentTypeExtractorInterface> = []
getType()
public
getType(string $class, string $property[, array<string|int, mixed> $context = [] ]) : Type|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
Type|nullgetTypes()
Gets types of a property.
public
getTypes(string $class, string $property[, array<string|int, mixed> $context = [] ]) : array<string|int, Type>|null
since Symfony 7.3, use "getType" instead
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []