1 | <?php |
||
11 | trait IncludedObjectsContainer |
||
12 | { |
||
13 | /** |
||
14 | * Objects supposed to be included to document |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $includedObjects = []; |
||
19 | |||
20 | /** |
||
21 | * Add included object to document |
||
22 | * |
||
23 | * @param mixed $object |
||
24 | */ |
||
25 | 1 | public function addIncludedObject($object) |
|
29 | |||
30 | /** |
||
31 | * Add an iterator contains objects should be included |
||
32 | * |
||
33 | * @param \Traversable $iterator |
||
34 | */ |
||
35 | 1 | public function addIncludedIterator(\Traversable $iterator) |
|
42 | |||
43 | /** |
||
44 | * Get objects included to document |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 3 | public function getIncludedObjects(): array |
|
52 | } |