1 | <?php |
||
48 | class Item extends \Jkphl\Micrometa\Domain\Item\Item implements ItemInterface |
||
49 | { |
||
50 | /** |
||
51 | * Parser format |
||
52 | * |
||
53 | * @var int |
||
54 | */ |
||
55 | protected $format; |
||
56 | /** |
||
57 | * Item value |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $value; |
||
62 | /** |
||
63 | * Nested Items |
||
64 | * |
||
65 | * @var ItemInterface[] |
||
66 | */ |
||
67 | protected $children; |
||
68 | |||
69 | /** |
||
70 | * Item constructor |
||
71 | * |
||
72 | * @param int $format Parser format |
||
73 | * @param PropertyListFactoryInterface $propertyListFactory Property list factory |
||
74 | * @param string|\stdClass|\stdClass[] $type Item type(s) |
||
75 | * @param \stdClass[] $properties Item properties |
||
76 | * @param ItemInterface[] $children Nested items |
||
77 | * @param string|null $itemId Item id |
||
78 | * @param string|null $itemLanguage Item language |
||
79 | * @param string|null $value Item value |
||
80 | */ |
||
81 | 31 | public function __construct( |
|
96 | |||
97 | /** |
||
98 | * Return the item value |
||
99 | * |
||
100 | * @return string Item value |
||
101 | */ |
||
102 | 5 | public function getValue() |
|
106 | |||
107 | /** |
||
108 | * Export the object |
||
109 | * |
||
110 | * @return mixed |
||
111 | */ |
||
112 | 3 | public function export() |
|
134 | |||
135 | /** |
||
136 | * Return the parser format |
||
137 | * |
||
138 | * @return int Parser format |
||
139 | */ |
||
140 | 15 | public function getFormat() |
|
144 | |||
145 | /** |
||
146 | * Return the nested children |
||
147 | * |
||
148 | * @return ItemInterface[] Nested children |
||
149 | */ |
||
150 | 19 | public function getChildren() |
|
154 | } |
||
155 |