| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AlternativeScheme implements QrCodeData |
||
| 11 | { |
||
| 12 | use SelfValidatableTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Parameter character chain of the alternative scheme |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $parameter; |
||
| 20 | |||
| 21 | public function getParameter(): ?string |
||
| 22 | { |
||
| 23 | return $this->parameter; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setParameter(string $parameter) : self |
||
| 27 | { |
||
| 28 | $this->parameter = $parameter; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getQrCodeData() : array |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Note that no real-life alternative schemes yet exist. Therefore validation is kept simple yet. |
||
| 42 | * @link https://www.paymentstandards.ch/en/home/softwarepartner/qr-bill/alternative-schemes.html |
||
| 43 | */ |
||
| 44 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
| 53 | } |