| 1 | <?php |
||
| 33 | class Stack extends LList implements |
||
|
|
|||
| 34 | Listable, |
||
| 35 | Immutable, |
||
| 36 | Countable, |
||
| 37 | Arrayable, |
||
| 38 | Invokable |
||
| 39 | { |
||
| 40 | use IsImmutable; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * To array. |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function toArray() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Invoke set. |
||
| 54 | * |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | public function __invoke() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Count elements of an object |
||
| 64 | * @link http://php.net/manual/en/countable.count.php |
||
| 65 | * @return int The custom count as an integer. |
||
| 66 | * </p> |
||
| 67 | * <p> |
||
| 68 | * The return value is cast to an integer. |
||
| 69 | * @since 5.1.0 |
||
| 70 | */ |
||
| 71 | public function count() |
||
| 75 | |||
| 76 | } |
||
| 77 |