1 | <?php |
||
8 | trait CollectionTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var array the collections |
||
12 | */ |
||
13 | protected $collections = array(); |
||
14 | |||
15 | /** |
||
16 | * Set (overwrite) collections |
||
17 | * |
||
18 | * Collections should be arrays or Traversable objects with name => path pairs |
||
19 | * |
||
20 | * @param array|\Traversable $collections |
||
21 | * |
||
22 | * @throws InvalidArgumentException |
||
23 | */ |
||
24 | public function setCollections($collections) |
||
40 | |||
41 | /** |
||
42 | * Retrieve the collections |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function getCollections() |
||
50 | } |
||
51 |