Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function check(BarcodeAwareInterface $barcodeAware): void |
||
25 | { |
||
26 | $this->eventDispatcher->dispatch(new PreBarcodeCheckEvent($barcodeAware), PreBarcodeCheckEvent::NAME); |
||
|
|||
27 | |||
28 | $validator = new BarcodeValidator($barcodeAware->getBarcode()); |
||
29 | $valid = (bool) $validator->isValid(); |
||
30 | |||
31 | $barcodeAware->markBarcodeAsChecked($valid); |
||
32 | |||
33 | $this->eventDispatcher->dispatch(new PostBarcodeCheckEvent($barcodeAware, $valid, (string) $validator->getType()), PostBarcodeCheckEvent::NAME); |
||
34 | } |
||
36 |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.