| 1 | <?php |
||
| 11 | class Barcode |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $barcode; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $reference; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $barcode |
||
| 26 | */ |
||
| 27 | 3 | public function setBarcode($barcode) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 3 | public function getBarcode() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $reference |
||
| 42 | */ |
||
| 43 | 3 | public function setReference($reference) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 1 | public function getReference() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param \SimpleXMLElement $xml |
||
| 58 | * |
||
| 59 | * @return self |
||
| 60 | */ |
||
| 61 | 3 | public static function createFromXML(\SimpleXMLElement $xml) |
|
| 73 | } |
||
| 74 |