| 1 | <?php |
||
| 14 | class SimpleObject implements \ArrayAccess, \Iterator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Array container. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private $container; |
||
| 22 | |||
| 23 | use ArrayAccessTrait; |
||
| 24 | use IteratorTrait; |
||
| 25 | use MagicAccessorTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Construct a new instance. |
||
| 29 | * |
||
| 30 | * @param array $data The data to use in the object. |
||
| 31 | */ |
||
| 32 | public function __construct(array $data = []) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the container. |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getContainer() |
||
| 46 | } |
||
| 47 |