CustomHeap extends SplHeap implements JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Methods
- __construct() : mixed
- CustomHeap constructor.
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
- Exports to array heap.
Methods
__construct()
CustomHeap constructor.
public
__construct(Closure $comparator) : mixed
Parameters
- $comparator : Closure
-
Comparator.
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
Exports to array heap.
public
toArray() : array<string|int, mixed>