| 1 | <?php |
||
| 10 | class Store implements Jsonable, Arrayable |
||
| 11 | { |
||
| 12 | protected $data; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 18 | |||
| 19 | public function put(string $key, $data): self |
||
| 25 | |||
| 26 | public function data(): Collection |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the instance as an array. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function toArray() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Convert the object to its JSON representation. |
||
| 43 | * |
||
| 44 | * @param int $options |
||
| 45 | * @return string |
||
| 46 | * @throws \Exception |
||
| 47 | */ |
||
| 48 | public function toJson($options = 0) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Convert the store to its string representation. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function __toString() |
||
| 68 | } |
||
| 69 |