Methods |
public
__construct
(
?
phpDocumentor\Reflection\FqsenResolver
$fqsenResolver
=
NULL
) Initializes this TypeResolver with the means to create and resolve Fqsen objects. |
public
addKeyword
(
string
$keyword
,
string
$typeClassName
) :
void
Adds a keyword to the list of Keywords and associates it with a specific Value Object.
|
public
resolve
(
string
$type
,
?
phpDocumentor\Reflection\Types\Context
$context
=
NULL
) :
phpDocumentor\Reflection\Type
Analyzes the given type and returns the FQCN variant. When a type is provided this method checks whether it is not a keyword or This method only works as expected if the namespace and aliases are set;
|
Constants |
private
phpDocumentor\Reflection\TypeResolver
::OPERATOR_ARRAY
=
'[]'
|
private
phpDocumentor\Reflection\TypeResolver
::OPERATOR_NAMESPACE
=
'\'
|
private
phpDocumentor\Reflection\TypeResolver
::PARSER_IN_ARRAY_EXPRESSION
=
2
|
private
phpDocumentor\Reflection\TypeResolver
::PARSER_IN_COLLECTION_EXPRESSION
=
3
|
private
phpDocumentor\Reflection\TypeResolver
::PARSER_IN_COMPOUND
=
0
|
private
phpDocumentor\Reflection\TypeResolver
::PARSER_IN_NULLABLE
=
1
|
Properties |
private
$fqsenResolver
|
private
$keywords
|
Methods |
private
isFqsen
(
string
$type
) :
bool
Tests whether the given type is a Fully Qualified Structural Element Name.
|
private
isKeyword
(
string
$type
) :
bool
Detects whether the given type represents a PHPDoc keyword.
|
private
isPartialStructuralElementName
(
string
$type
) :
bool
Detects whether the given type represents a relative structural element name.
|
private
makeCollectionFromObject
(
phpDocumentor\Reflection\Types\Object_
$object
,
phpDocumentor\Reflection\Type
$valueType
,
?
phpDocumentor\Reflection\Type
$keyType
=
NULL
) :
phpDocumentor\Reflection\Types\Collection
|
private
parseTypes
(
ArrayIterator
$tokens
,
phpDocumentor\Reflection\Types\Context
$context
,
int
$parserContext
) :
phpDocumentor\Reflection\Type
Analyse each tokens and creates types |
private
resolveClassString
(
ArrayIterator
$tokens
,
phpDocumentor\Reflection\Types\Context
$context
) :
phpDocumentor\Reflection\Type
Resolves class string |
private
resolveCollection
(
ArrayIterator
$tokens
,
phpDocumentor\Reflection\Type
$classType
,
phpDocumentor\Reflection\Types\Context
$context
) :
phpDocumentor\Reflection\Type
Resolves the collection values and keys
|
private
resolveKeyword
(
string
$type
) :
phpDocumentor\Reflection\Type
Resolves the given keyword (such as
|
private
resolveSingleType
(
string
$type
,
phpDocumentor\Reflection\Types\Context
$context
) :
object
resolve the given type into a type object
|
private
resolveTypedObject
(
string
$type
,
?
phpDocumentor\Reflection\Types\Context
$context
=
NULL
) :
phpDocumentor\Reflection\Types\Object_
Resolves the given FQSEN string into an FQSEN object.
|