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
KIND_ARRAY
public
mixed
KIND_ARRAY
= 'array'
KIND_LIST
public
mixed
KIND_LIST
= 'list'
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'
$items
public
array<string|int, ArrayShapeItemNode>
$items
$kind
public
self::KIND_*
$kind
$sealed
public
bool
$sealed
$unsealedType
public
ArrayShapeUnsealedTypeNode|null
$unsealedType
= null
$attributes
private
array<string, mixed>
$attributes
= []
__toString()
public
__toString() : string
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
-
createUnsealed()
public
static createUnsealed(array<string|int, ArrayShapeItemNode> $items, ArrayShapeUnsealedTypeNode|null $unsealedType[, self::KIND_* $kind = self::KIND_ARRAY ]) : self
Parameters
-
$items
: array<string|int, ArrayShapeItemNode>
-
-
$unsealedType
: ArrayShapeUnsealedTypeNode|null
-
-
$kind
: self::KIND_*
= self::KIND_ARRAY
-
getAttribute()
public
getAttribute(string $key) : mixed
Parameters
-
$key
: string
-
hasAttribute()
public
hasAttribute(string $key) : bool
Parameters
-
$key
: string
-
setAttribute()
public
setAttribute(string $key, mixed $value) : void
Parameters
-
$key
: string
-
-
$value
: mixed
-
__construct()
private
__construct(array<string|int, ArrayShapeItemNode> $items[, bool $sealed = true ][, ArrayShapeUnsealedTypeNode|null $unsealedType = null ][, self::KIND_* $kind = self::KIND_ARRAY ]) : mixed
Parameters
-
$items
: array<string|int, ArrayShapeItemNode>
-
-
$sealed
: bool
= true
-
-
$unsealedType
: ArrayShapeUnsealedTypeNode|null
= null
-
-
$kind
: self::KIND_*
= self::KIND_ARRAY
-