Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class NumerosPedimentoAduana implements BaseCatalog |
||
13 | { |
||
14 | use BaseCatalogTrait; |
||
15 | |||
16 | 2 | public function obtain(string $aduana, string $patente, int $ejercicio): NumeroPedimentoAduana |
|
17 | { |
||
18 | 2 | $data = $this->repository()->queryRowByFields(Repository::CFDI_40_NUMEROS_PEDIMENTO_ADUANA, [ |
|
19 | 'aduana' => $aduana, |
||
20 | 'patente' => $patente, |
||
21 | 'ejercicio' => $ejercicio, |
||
22 | ]); |
||
23 | 2 | return $this->create($data); |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param array<string, scalar> $data |
||
28 | * @return NumeroPedimentoAduana |
||
29 | */ |
||
30 | 3 | public function create(array $data): NumeroPedimentoAduana |
|
40 | ); |
||
41 | } |
||
43 |