Documentation

ConstructorExtractor
in package
implements PropertyTypeExtractorInterface

FinalYes

Extracts the constructor argument type using ConstructorArgumentTypeExtractorInterface implementations.

Tags
author

Dmitrii Poddubnyi dpoddubny@gmail.com

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

Methods

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

getTypes()

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

        
On this page

Search results