| 1 | <?php |
||
| 5 | abstract class AbstractResult |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | protected $code = 0; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $text; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $format; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function hasResult() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getText() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getFormat() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Will determine what type of barcode and set the correct text response |
||
| 48 | * |
||
| 49 | * @param string $text |
||
| 50 | */ |
||
| 51 | protected function text($text) |
||
| 55 | |||
| 56 | protected function format($format) |
||
| 60 | |||
| 61 | public function __toString() |
||
| 65 | } |
||
| 66 |