ChannelsCollection implements Iterator, ArrayAccess, Countable
FinalYes
Table of Contents
Interfaces
- Iterator
- ArrayAccess
- Countable
Methods
- __construct() : mixed
- count() : int
- current() : Channel|null
- getChannel() : Channel|null
- getPropertyNameList() : array<string|int, mixed>
- hasChannel() : bool
- key() : string
- next() : void
- offsetExists() : bool
- offsetGet() : Channel|null
- offsetSet() : void
- offsetUnset() : void
- rewind() : void
- toArray() : array<string|int, mixed>
- valid() : bool
Methods
__construct()
public
__construct(array<string|int, Channel> $channels) : mixed
Parameters
- $channels : array<string|int, Channel>
count()
public
count() : int
Return values
intcurrent()
public
current() : Channel|null
Return values
Channel|nullgetChannel()
public
getChannel(string $moduleId, string $code) : Channel|null
Parameters
- $moduleId : string
- $code : string
Return values
Channel|nullgetPropertyNameList()
public
getPropertyNameList() : array<string|int, mixed>
Return values
array<string|int, mixed>hasChannel()
public
hasChannel(string $moduleId, string $code) : bool
Parameters
- $moduleId : string
- $code : string
Return values
boolkey()
public
key() : string
Return values
stringnext()
public
next() : void
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : Channel|null
Parameters
- $offset : mixed
Return values
Channel|nulloffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
rewind()
public
rewind() : void
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>valid()
public
valid() : bool