Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class PostBarcodeCheckEvent extends Event |
||
11 | { |
||
12 | /** @deprecated will be removed in v2 */ |
||
13 | public const NAME = 'loevgaard_sylius_barcode.post_barcode_check'; |
||
14 | |||
15 | /** @var BarcodeAwareInterface */ |
||
16 | private $subject; |
||
17 | |||
18 | /** @var bool */ |
||
19 | private $valid; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $type; |
||
23 | |||
24 | public function __construct(BarcodeAwareInterface $subject, bool $valid, string $type) |
||
29 | } |
||
30 | |||
31 | public function getSubject(): BarcodeAwareInterface |
||
32 | { |
||
33 | return $this->subject; |
||
34 | } |
||
35 | |||
36 | public function isValid(): bool |
||
37 | { |
||
38 | return $this->valid; |
||
39 | } |
||
40 | |||
41 | public function getType(): string |
||
44 | } |
||
45 | } |
||
46 |