| 1 | <?php |
||
| 12 | class ResourceCollection extends Sequence |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * |
||
| 17 | * |
||
| 18 | * There isn't much to ordering here. |
||
| 19 | * Just use a numeric key and we will try tro sort later |
||
| 20 | * |
||
| 21 | * @param array $resources |
||
| 22 | */ |
||
| 23 | 3 | public function __construct($resources = []) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function toArray() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * |
||
| 44 | * @param Resource $resource |
||
| 45 | * @throws \RuntimeException |
||
| 46 | */ |
||
| 47 | public function add($resource) |
||
| 54 | } |
||
| 55 |