Copied!

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

CloneableFinalInstantiable
Methods
public getType(phpDocumentor\Reflection\Type $varType) : ?Symfony\Component\TypeInfo\Type
 

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

public getTypes(phpDocumentor\Reflection\Type $varType) : array
 

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

  • return \LegacyType[]
Methods
private createLegacyType(phpDocumentor\Reflection\Type $type, bool $nullable) : ?Symfony\Component\PropertyInfo\Type
 

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

private createType(phpDocumentor\Reflection\Type $docType) : ?Symfony\Component\TypeInfo\Type
 

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

private getPhpTypeAndClass(string $docType) : array
private normalizeType(string $docType) : string
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration