Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function __construct( |
||
16 | ModelInterface $model, |
||
17 | string $childElementType, |
||
18 | int $minOccurs = null, |
||
19 | int $maxOccurs = null, |
||
20 | string $namespaceUri = null |
||
21 | ) { |
||
22 | $this->model = $model; |
||
23 | $this->childElementType = $this->model->getType($childElementType); |
||
24 | $this->minOccurs = $minOccurs ?? 0; |
||
25 | $this->maxOccurs = $maxOccurs ?? -1; |
||
26 | $this->namespaceUri = $namespaceUri ?? $this->getDefaultNamespace(); |
||
27 | } |
||
31 |