Methods |
public
__construct
(
?
phpDocumentor 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 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
|
private
phpDocumentor
|
private
phpDocumentor
|
private
phpDocumentor
|
private
phpDocumentor
|
private
phpDocumentor
|
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
|
private
parseTypes
(
ArrayIterator
$tokens
,
phpDocumentor Analyse each tokens and creates types
|
private
resolveClassString
(
ArrayIterator
$tokens
,
phpDocumentor Resolves class string
|
private
resolveCollection
(
ArrayIterator
$tokens
,
phpDocumentor Resolves the collection values and keys
|
private
resolveInterfaceString
(
ArrayIterator
$tokens
,
phpDocumentor Resolves class string
|
private
resolveIntRange
(
ArrayIterator
$tokens
) :
phpDocumentor Resolves integer ranges
|
private
resolveKeyword
(
string
$type
) :
phpDocumentor Resolves the given keyword (such as
|
private
resolveSingleType
(
string
$type
,
phpDocumentor resolve the given type into a type object
|
private
resolveTypedObject
(
string
$type
,
?
phpDocumentor Resolves the given FQSEN string into an FQSEN object.
|