Documentation

ArrayShapeNode
in package
implements TypeNode uses NodeAttributes

Table of Contents

Interfaces

TypeNode

Constants

KIND_ARRAY  = 'array'
KIND_LIST  = 'list'
KIND_NON_EMPTY_ARRAY  = 'non-empty-array'
KIND_NON_EMPTY_LIST  = 'non-empty-list'

Properties

$items  : array<string|int, ArrayShapeItemNode>
$kind  : self::KIND_*
$sealed  : bool
$unsealedType  : ArrayShapeUnsealedTypeNode|null
$attributes  : array<string, mixed>

Methods

__toString()  : string
createSealed()  : self
createUnsealed()  : self
getAttribute()  : mixed
hasAttribute()  : bool
setAttribute()  : void
__construct()  : mixed

Constants

KIND_NON_EMPTY_ARRAY

public mixed KIND_NON_EMPTY_ARRAY = 'non-empty-array'

KIND_NON_EMPTY_LIST

public mixed KIND_NON_EMPTY_LIST = 'non-empty-list'

Properties

Methods

createSealed()

public static createSealed(array<string|int, ArrayShapeItemNode$items[, self::KIND_* $kind = self::KIND_ARRAY ]) : self
Parameters
$items : array<string|int, ArrayShapeItemNode>
$kind : self::KIND_* = self::KIND_ARRAY
Return values
self

getAttribute()

public getAttribute(string $key) : mixed
Parameters
$key : string

hasAttribute()

public hasAttribute(string $key) : bool
Parameters
$key : string
Return values
bool

setAttribute()

public setAttribute(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed

        
On this page

Search results