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