| Total Complexity | 10 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Barcode |
||
| 12 | { |
||
| 13 | public function __construct( |
||
| 14 | private ?string $barcode = null, |
||
| 15 | private ?string $reference = null, |
||
| 16 | ) {} |
||
| 17 | |||
| 18 | public function setBarcode(?string $barcode): void |
||
| 19 | { |
||
| 20 | $this->barcode = $barcode; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getBarcode(): ?string |
||
| 24 | { |
||
| 25 | return $this->barcode; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function setReference(?string $reference): void |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getReference(): ?string |
||
| 34 | { |
||
| 35 | return $this->reference; |
||
| 36 | } |
||
| 37 | |||
| 38 | public static function createFromXML(SimpleXMLElement $xml): self |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 |