1 | <?php |
||
25 | abstract class AbstractLeafs implements LeafsInterface |
||
26 | { |
||
27 | use EntityTrait; |
||
28 | |||
29 | /** |
||
30 | * The leafs. |
||
31 | * |
||
32 | * @ODM\ReferenceMany(discriminatorField="_entity", storeAs="dbRef", strategy="set", sort={"priority"="asc"}) |
||
33 | * @var Collection |
||
34 | */ |
||
35 | private $items; |
||
36 | |||
37 | public function getItems() |
||
45 | |||
46 | public function setItems(Collection $items) |
||
52 | |||
53 | /** |
||
54 | * Get a list of the names of all attached leafs. |
||
55 | * |
||
56 | * Will prefix the leaf name with its parents, unless the parent is |
||
57 | * the root node. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function __toString() |
||
82 | } |