1 <?php
2
3 /*
4 * This file is part of the ICanBoogie package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace ICanBoogie;
13
14 interface ToArray
15 {
16 /**
17 * Converts the object into an array.
18 *
19 * @return array
20 */
21 public function to_array();
22 }
23
24 interface ToArrayRecursive extends ToArray
25 {
26 /**
27 * Converts the object into an array recursively.
28 *
29 * @return array
30 */
31 public function to_array_recursive();
32 }