| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Converter |
||
| 13 | { |
||
| 14 | /** @var BuilderInterface */ |
||
| 15 | private $builder; |
||
| 16 | |||
| 17 | 5 | public function __construct(BuilderInterface $builder) |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param CfdiData $cfdiData |
||
| 24 | * @param string $destination |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | 4 | public function createPdfAs(CfdiData $cfdiData, string $destination): void |
|
| 28 | { |
||
| 29 | 4 | $this->builder->build($cfdiData, $destination); |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function createPdf(CfdiData $cfdiData): string |
|
| 38 | } |
||
| 39 | } |
||
| 40 |