Menu

## FqsenResolver
in package

FqsenResolver.php : 28

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

#### OPERATOR_NAMESPACE

FqsenResolver.php : 31
`private string OPERATOR_NAMESPACE = '\'`

Definition of the NAMESPACE operator in PHP

### Methods

#### resolve()

FqsenResolver.php : 33
`public resolve(string $fqsen[, Context|null $context = null ]) : Fqsen`

##### Parameters

$fqsen : string
$context : Context|null = null

##### Return values

Fqsen —

#### isFqsen()

FqsenResolver.php : 49

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

`private isFqsen(string $type) : bool`

##### Parameters

$type : string

##### Return values

bool —

#### resolvePartialStructuralElementName()

FqsenResolver.php : 60

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