| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class IntDoc extends AbstractDocument |
||
| 11 | { |
||
| 12 | 6 | public function getImportRoot(): string |
|
| 13 | { |
||
| 14 | 6 | return 'lst:intDoc'; |
|
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Add tax document. |
||
| 19 | * |
||
| 20 | * @param Type\Dtos\TaxDocumentDto $data |
||
| 21 | * |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | 1 | public function addTaxDocument(Type\Dtos\TaxDocumentDto $data): self |
|
| 25 | { |
||
| 26 | 1 | $taxDocument = new Type\TaxDocument($this->dependenciesFactory); |
|
| 27 | 1 | $taxDocument |
|
| 28 | 1 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 29 | 1 | ->setResolveOptions($this->resolveOptions) |
|
| 30 | 1 | ->setData($data); |
|
| 31 | 1 | $this->data->taxDocument = $taxDocument; |
|
| 32 | |||
| 33 | 1 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 6 | protected function getDocumentNamespace(): string |
|
| 40 | { |
||
| 41 | 6 | return 'int'; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | 6 | protected function getDocumentName(): string |
|
| 48 | { |
||
| 49 | 6 | return 'intDoc'; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 6 | protected function getDefaultDto(): Common\Dtos\AbstractDto |
|
| 58 | } |
||
| 59 | } |
||
| 60 |