1 | <?php |
||
11 | class Footer |
||
12 | { |
||
13 | /** |
||
14 | * Line lenght |
||
15 | * |
||
16 | * @const int |
||
17 | */ |
||
18 | const LENGTH = 1006; |
||
19 | |||
20 | /** |
||
21 | * Type of register |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | const TYPE = 'Z'; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $rows; |
||
31 | |||
32 | /** |
||
33 | * @var Sequence |
||
34 | */ |
||
35 | private $sequence; |
||
36 | |||
37 | /** |
||
38 | * Constructor |
||
39 | * @param string $row |
||
40 | */ |
||
41 | 5 | public function __construct($row) |
|
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | 1 | public function getRows() |
|
54 | |||
55 | /** |
||
56 | * @param int $rows |
||
57 | */ |
||
58 | 1 | public function setRows($rows = 0) |
|
62 | |||
63 | /** |
||
64 | * @return Sequence |
||
65 | */ |
||
66 | 1 | public function getSequence() |
|
70 | |||
71 | /** |
||
72 | * @param Sequence $sequence |
||
73 | */ |
||
74 | 1 | public function setSequence(Sequence $sequence) |
|
78 | } |
||
79 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.