Type Resolver

Object_
in package
implements Type

FinalYes

Value Object representing an object.

An object can be either typed or untyped. When an object is typed it means that it has an identifier, the FQSEN, pointing to an element in PHP. Object types that are untyped do not refer to a specific class but represent objects in general.

Tags
psalm-immutable

Table of Contents

Interfaces

Type

Properties

$fqsen  : Fqsen|null

Methods

__construct()  : mixed
Initializes this object with an optional FQSEN, if not provided this object is considered 'untyped'.
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getFqsen()  : Fqsen|null
Returns the FQSEN associated with this object.

Properties

Methods

__construct()

Initializes this object with an optional FQSEN, if not provided this object is considered 'untyped'.

public __construct([Fqsen|null $fqsen = null ]) : mixed
Parameters
$fqsen : Fqsen|null = null
Tags
throws
InvalidArgumentException

When provided $fqsen is not a valid type.

__toString()

Returns a rendered output of the Type as it would be used in a DocBlock.

public __toString() : string
Return values
string

getFqsen()

Returns the FQSEN associated with this object.

public getFqsen() : Fqsen|null
Return values
Fqsen|null

        
On this page

Search results