Type Resolver

ObjectShape extends Object_
in package
implements PseudoType

FinalYes

Value Object representing an object.

Tags
psalm-immutable

Table of Contents

Interfaces

PseudoType

Properties

$fqsen  : Fqsen|null
$items  : array<string|int, ObjectShapeItem>

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.
getItems()  : array<string|int, ObjectShapeItem>
underlyingType()  : Type

Properties

Methods

__construct()

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

public __construct(ObjectShapeItem ...$items) : mixed
Parameters
$items : ObjectShapeItem

__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