| Methods |
public
static
|
createEmpty(): self
|
#
|
public
static
|
createFromConstantArray(ConstantArrayType $startArrayType): self
|
#
|
public
|
makeKeyOrderKnown(): void
The keys come in the order they are set, as in a literal array.
The keys come in the order they are set, as in a literal array.
|
#
|
public
|
forgetKeyOrder(): void
The array is built without the order of its keys, as a PHPDoc shape that lists them.
The array is built without the order of its keys, as a PHPDoc shape that lists them.
|
#
|
public
|
forgetListKeyOrder(): void
The keys come in any order, so the array can be a list when they could come in ascending
order, but does not surely come as one.
The keys come in any order, so the array can be a list when they could come in ascending
order, but does not surely come as one.
|
#
|
public
|
makeUnsealed(Type $keyType, Type $valueType): void
|
#
|
public
|
mergeUnsealed(Type $keyType, Type $valueType): void
Adds unsealed extras on top of the ones the builder already collected
instead of replacing them.
Adds unsealed extras on top of the ones the builder already collected
instead of replacing them.
Offsets the builder could not give a slot of their own (a non-constant
key like string) end up in the unsealed extras, so overwriting them
would drop their value type.
|
#
|
public
|
setOffsetValueType(?Type $offsetType, Type $valueType, bool $optional = false): void
|
#
|
public
|
degradeToGeneralArray(bool $oversized = false): void
|
#
|
public
|
disableClosureDegradation(): void
|
#
|
public
|
disableArrayDegradation(): void
|
#
|
public
|
getArray(): Type
|
#
|
public
|
isList(): bool
|
#
|