Documentation

FqsenResolver
in package

Resolver for Fqsen using Context information

Tags
psalm-immutable

Table of Contents

OPERATOR_NAMESPACE  = '\'
resolve()  : Fqsen
isFqsen()  : bool
Tests whether the given type is a Fully Qualified Structural Element Name.
resolvePartialStructuralElementName()  : Fqsen
Resolves a partial Structural Element Name (i.e. `Reflection\DocBlock`) to its FQSEN representation (i.e. `\phpDocumentor\Reflection\DocBlock`) based on the Namespace and aliases mentioned in the Context.

Constants

Methods

isFqsen()

Tests whether the given type is a Fully Qualified Structural Element Name.

private isFqsen(string $type) : bool
Parameters
$type : string
Return values
bool

resolvePartialStructuralElementName()

Resolves a partial Structural Element Name (i.e. `Reflection\DocBlock`) to its FQSEN representation (i.e. `\phpDocumentor\Reflection\DocBlock`) based on the Namespace and aliases mentioned in the Context.

private resolvePartialStructuralElementName(string $type, Context $context) : Fqsen
Parameters
$type : string
$context : Context
Tags
throws
InvalidArgumentException

When type is not a valid FQSEN.

Return values
Fqsen

Search results