| 1 | <?php |
||
| 15 | class TreeObject extends ValueObject |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array Node collection |
||
| 19 | */ |
||
| 20 | protected $nodes = array(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns nodes. |
||
| 24 | * |
||
| 25 | * @return array Node collection |
||
| 26 | */ |
||
| 27 | 1 | public function getNodes() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Adds node. |
||
| 34 | * |
||
| 35 | * @param ObjectInterface $node Node to add |
||
| 36 | */ |
||
| 37 | 1 | public function addNode($node) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Removes node. |
||
| 44 | * |
||
| 45 | * @param ObjectInterface $node Node to remove |
||
| 46 | */ |
||
| 47 | 1 | public function removeNode(ObjectInterface $node) |
|
| 51 | } |
||
| 52 |