PhpDocTypeHelper
in package
Transforms a php doc type to a {@link Type} instance.
Tags
Table of Contents
- getTypes() : array<string|int, Type>
- Creates a {@see Type} from a PHPDoc type.
- createType() : Type|null
- Creates a {@see Type} from a PHPDoc type.
- getPhpTypeAndClass() : array<string|int, mixed>
- normalizeType() : string
Methods
getTypes()
Creates a {@see Type} from a PHPDoc type.
public
getTypes(Type $varType) : array<string|int, Type>
Parameters
- $varType : Type
Return values
array<string|int, Type> —createType()
Creates a {@see Type} from a PHPDoc type.
private
createType(Type $type, bool $nullable[, string $docType = null ]) : Type|null
Parameters
- $type : Type
- $nullable : bool
- $docType : string = null
Return values
Type|null —getPhpTypeAndClass()
private
getPhpTypeAndClass(string $docType) : array<string|int, mixed>
Parameters
- $docType : string
Return values
array<string|int, mixed> —normalizeType()
private
normalizeType(string $docType) : string
Parameters
- $docType : string