1 <?php
2
3 namespace Docolight\Http\Contracts;
4
5 /**
6 * Useful to strictly use an object that has implemented this contract in a response.
7 *
8 * @author Krisan Alfa Timur <krisanalfa@docotel.co.id>
9 */
10 interface Arrayable
11 {
12 /**
13 * Convert implementation to an array.
14 *
15 * @return array
16 */
17 public function castToArray();
18
19 /**
20 * Bulk insert attributes.
21 *
22 * @param mixed $attributes
23 */
24 public function fill($attributes);
25 }
26