Documentation

StringTypeResolver
in package
implements TypeResolverInterface

FinalYes

Resolves type for a given string.

Tags
author

Mathias Arlaud mathias.arlaud@gmail.com

author

Baptiste Leduc baptiste.leduc@gmail.com

Table of Contents

Interfaces

TypeResolverInterface
Resolves type for a given subject.

Properties

$classExistCache  : array<string, bool>
$extraTypeAliases  : array<string|int, mixed>
$lexer  : Lexer
$parser  : TypeParser

Methods

__construct()  : mixed
resolve()  : Type
Try to resolve a {@see Type} on a $subject.
getTypeFromNode()  : Type
resolveCustomIdentifier()  : Type

Properties

$extraTypeAliases read-only

private array<string|int, mixed> $extraTypeAliases = []

Methods

__construct()

public __construct([Lexer|null $lexer = null ][, TypeParser|null $parser = null ][, array<string, string> $extraTypeAliases = [] ]) : mixed
Parameters
$lexer : Lexer|null = null
$parser : TypeParser|null = null
$extraTypeAliases : array<string, string> = []

        
On this page

Search results