| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class IntDoc extends AbstractDocument |
||
| 20 | { |
||
| 21 | 6 | public function getImportRoot(): string |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Add tax document. |
||
| 28 | * |
||
| 29 | * @param array<string,mixed> $data |
||
| 30 | * |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | 1 | public function addTaxDocument(array $data): self |
|
| 34 | { |
||
| 35 | 1 | $taxDocument = new Type\TaxDocument($this->dependenciesFactory); |
|
| 36 | 1 | $taxDocument |
|
| 37 | 1 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 38 | 1 | ->setResolveOptions($this->resolveOptions) |
|
| 39 | 1 | ->setData($data); |
|
| 40 | 1 | $this->data['taxDocument'] = $taxDocument; |
|
| 41 | |||
| 42 | 1 | return $this; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 5 | protected function getDocumentElements(): array |
|
| 49 | { |
||
| 50 | 5 | return \array_merge(['taxDocument'], parent::getDocumentElements()); |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | 6 | protected function getDocumentNamespace(): string |
|
| 57 | { |
||
| 58 | 6 | return 'int'; |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | 6 | protected function getDocumentName(): string |
|
| 67 | } |
||
| 68 | } |
||
| 69 |