Types implements Countable
Read onlyYes
FinalYes
Interfaces
- Countable
Methods
- __construct() : mixed
- all() : array<string|int, Type<string|int, mixed>>
- count() : int
- first() : Type<string|int, mixed>|null
- has() : bool
- only() : self
- without() : self
Methods
__construct()
public
__construct(Type<string|int, mixed> ...$types) : mixed
Parameters
- $types : Type<string|int, mixed>
all()
public
all() : array<string|int, Type<string|int, mixed>>
Return values
array<string|int, Type<string|int, mixed>>count()
public
count() : int
Return values
intfirst()
public
first() : Type<string|int, mixed>|null
Return values
Type<string|int, mixed>|nullhas()
public
has(Type<string|int, mixed> $type) : bool
Parameters
- $type : Type<string|int, mixed>
Return values
boolonly()
public
only(Type<string|int, mixed> ...$types) : self
Parameters
- $types : Type<string|int, mixed>
Return values
selfwithout()
public
without(Type<string|int, mixed> ...$types) : self
Parameters
- $types : Type<string|int, mixed>