Documentation

ConstructorArgumentTypeExtractorInterface

Infers the constructor argument type.

Tags
author

Dmitrii Poddubnyi dpoddubny@gmail.com

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|null

getTypesFromConstructor()

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
Return values
array<string|int, Type>|null

        
On this page

Search results