AbstractQueue
extends AbstractObjects
in package
implements
QueueInterface
AbstractYes
Table of Contents
Interfaces
Properties
- $objects : array<string|int, mixed>
- $workKey : int|string
- $workValue : mixed
Methods
- __construct() : mixed
- 新しいオブジェクトを作成します。
- clear() : void
- 配列をクリアします
- current() : mixed
- isEmpty() : bool
- 配列が空であることを確認します。
- isNotEmpty() : bool
- 配列が空でないことを確認します。
- key() : mixed
- next() : void
- rewind() : void
- size() : int
- 配列のサイズを取得します。
- toArray() : array<string|int, mixed>
- オブジェクトを配列で取得します。
- valid() : bool
Properties
$objects
protected
array<string|int, mixed>
$objects
= []
$workKey
private
int|string
$workKey
要素のkey
$workValue
private
mixed
$workValue
要素の値
Methods
__construct()
新しいオブジェクトを作成します。
public
__construct(array<string|int, mixed> $objects) : mixed
Parameters
- $objects : array<string|int, mixed>
clear()
配列をクリアします
public
clear() : void
current()
public
current() : mixed
Attributes
- #[ReturnTypeWillChange]
isEmpty()
配列が空であることを確認します。
public
isEmpty() : bool
Return values
bool —配列が空の場合はtrue、それ以外はfalseを返します
isNotEmpty()
配列が空でないことを確認します。
public
isNotEmpty() : bool
Return values
bool —配列が空でない場合はtrue、それ以外はfalseを返します
key()
public
key() : mixed
Attributes
- #[ReturnTypeWillChange]
next()
public
next() : void
rewind()
public
rewind() : void
size()
配列のサイズを取得します。
public
size() : int
Return values
int —配列のサイズを返します
toArray()
オブジェクトを配列で取得します。
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>valid()
public
valid() : bool