Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class BatchStatusLabelType |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $barcode = null; |
||
21 | |||
22 | /** |
||
23 | * Constructor. |
||
24 | * |
||
25 | * @var string |
||
26 | * |
||
27 | * @param mixed $barcode |
||
28 | */ |
||
29 | public function __construct($barcode) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getBarcode() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $barcode |
||
44 | * |
||
45 | * @return $this |
||
46 | */ |
||
47 | public function setBarcode($barcode) |
||
54 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.