Documentation

Object_
in package
implements Type

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

Interfaces, Classes and Traits

Type

Table of Contents

$fqsen  : Fqsen|null
__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.

Return values
mixed

__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

Search results