| 1 | <?php |
||
| 29 | class Dict implements |
||
|
|
|||
| 30 | Dictable, |
||
| 31 | Immutable, |
||
| 32 | Countable, |
||
| 33 | Arrayable, |
||
| 34 | Invokable |
||
| 35 | { |
||
| 36 | use IsImmutable; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * To array. |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | public function toArray() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Invoke set. |
||
| 50 | * |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function __invoke() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Count elements of an object |
||
| 60 | * @link http://php.net/manual/en/countable.count.php |
||
| 61 | * @return int The custom count as an integer. |
||
| 62 | * </p> |
||
| 63 | * <p> |
||
| 64 | * The return value is cast to an integer. |
||
| 65 | * @since 5.1.0 |
||
| 66 | */ |
||
| 67 | public function count() |
||
| 71 | |||
| 72 | } |
||
| 73 |