| 1 | <?php |
||
| 9 | class GroupRef extends Group implements InterfaceSetMinMax |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Group |
||
| 13 | */ |
||
| 14 | protected $wrapped; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | protected $min = 1; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $max = 1; |
||
| 25 | |||
| 26 | 49 | public function __construct(Group $group) |
|
| 27 | { |
||
| 28 | 49 | parent::__construct($group->getSchema(), ''); |
|
| 29 | 49 | $this->wrapped = $group; |
|
| 30 | 49 | } |
|
| 31 | |||
| 32 | public function getMin(): int |
||
| 36 | |||
| 37 | 49 | public function setMin(int $min): void |
|
| 38 | { |
||
| 39 | 49 | $this->min = $min; |
|
| 40 | 49 | } |
|
| 41 | |||
| 42 | 1 | public function getMax(): int |
|
| 46 | |||
| 47 | 49 | public function setMax(int $max): void |
|
| 48 | { |
||
| 49 | 49 | $this->max = $max; |
|
| 50 | 49 | } |
|
| 51 | |||
| 52 | 1 | public function getName(): string |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return ElementItem[] |
||
| 59 | */ |
||
| 60 | 1 | public function getElements(): array |
|
| 79 | |||
| 80 | public function addElement(ElementItem $element): void |
||
| 84 | } |
||
| 85 |