\Symfony\Component\PropertyInfo\UtilPhpDocTypeHelper

Transforms a php doc type to a {@link Type} instance.

Summary

Methods
Properties
Constants
getTypes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
createType()
normalizeType()
getPhpTypeAndClass()
No private properties found
N/A

Methods

getTypes()

getTypes(\phpDocumentor\Reflection\Type  $varType) : \Symfony\Component\PropertyInfo\Type[]

Creates a {@see Type} from a PHPDoc type.

Parameters

\phpDocumentor\Reflection\Type $varType

Returns

\Symfony\Component\PropertyInfo\Type[] —

createType()

createType(\phpDocumentor\Reflection\Type  $type, bool  $nullable, string  $docType = null) : ?\Symfony\Component\PropertyInfo\Type

Creates a {@see Type} from a PHPDoc type.

Parameters

\phpDocumentor\Reflection\Type $type
bool $nullable
string $docType

Returns

?\Symfony\Component\PropertyInfo\Type —

normalizeType()

normalizeType(string  $docType) : string

Parameters

string $docType

Returns

string —

getPhpTypeAndClass()

getPhpTypeAndClass(string  $docType) : array

Parameters

string $docType

Returns

array —