Flow PHP

ArrayContentDetector

Read onlyYes
FinalYes

Methods

__construct()  : mixed
firstKeyType()  : null|Type<string|int, int|string>
firstValueType()  : null|Type<string|int, mixed>
isList()  : bool
isMap()  : bool
isStructure()  : bool
valueType()  : Type<string|int, mixed>

Methods

__construct()

public __construct(Types<string|int, string|int> $uniqueKeysType, Types<string|int, mixed> $uniqueValuesType[, bool $isList = false ]) : mixed
Parameters
$uniqueKeysType : Types<string|int, string|int>
$uniqueValuesType : Types<string|int, mixed>
$isList : bool = false

isList()

public isList() : bool
Tags
phpstan-assert-if-true

Type $this->firstKeyType()

Return values
bool

isMap()

public isMap() : bool
Tags
phpstan-assert-if-true

Type<int|string> $this->firstKeyType()

Return values
bool

        
On this page

Search results