1 | <?php |
||
45 | class Item extends \Jkphl\Micrometa\Domain\Item\Item implements ItemInterface |
||
46 | { |
||
47 | /** |
||
48 | * Parser format |
||
49 | * |
||
50 | * @var int |
||
51 | */ |
||
52 | protected $format; |
||
53 | /** |
||
54 | * Item value |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $value; |
||
59 | /** |
||
60 | * Nested Items |
||
61 | * |
||
62 | * @var ItemInterface[] |
||
63 | */ |
||
64 | protected $children; |
||
65 | |||
66 | /** |
||
67 | * Item constructor |
||
68 | * |
||
69 | * @param int $format Parser format |
||
70 | * @param string|array $type Item type(s) |
||
71 | * @param array[] $properties Item properties |
||
72 | * @param ItemInterface[] $children Nested items |
||
73 | * @param string|null $itemId Item id |
||
74 | * @param string|null $value Item value |
||
75 | */ |
||
76 | 6 | public function __construct( |
|
89 | |||
90 | /** |
||
91 | * Return the parser format |
||
92 | * |
||
93 | * @return int Parser format |
||
94 | */ |
||
95 | 3 | public function getFormat() |
|
99 | |||
100 | /** |
||
101 | * Return the item value |
||
102 | * |
||
103 | * @return string Item value |
||
104 | */ |
||
105 | public function getValue() |
||
109 | |||
110 | /** |
||
111 | * Return the nested children |
||
112 | * |
||
113 | * @return ItemInterface[] Nested children |
||
114 | */ |
||
115 | public function getChildren() |
||
119 | } |
||
120 |