ConstructorArgumentTypeExtractorInterface
in
Infers the constructor argument type.
Tags
Table of Contents
Methods
- getTypeFromConstructor() : Type|null
- Gets type of an argument from constructor.
- getTypesFromConstructor() : array<string|int, Type>|null
- Gets types of an argument from constructor.
Methods
getTypeFromConstructor()
Gets type of an argument from constructor.
public
getTypeFromConstructor(class-string $class, string $property) : Type|null
Parameters
- $class : class-string
- $property : string
Return values
Type|nullgetTypesFromConstructor()
Gets types of an argument from constructor.
public
getTypesFromConstructor(string $class, string $property) : array<string|int, Type>|null
since Symfony 7.3, use "getTypeFromConstructor" instead
Parameters
- $class : string
- $property : string