Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
61 | public static function get( |
||
62 | /*# string */ $dataType = self::TYPE_OID, |
||
63 | /*# string */ $shardId = '0001' |
||
64 | )/*# : string */ { |
||
65 | $obj = static::getInstance(); |
||
66 | return |
||
67 | substr(self::VERSION, 0, 1) . // 0 |
||
68 | $dataType . // 1 - 4 |
||
69 | $obj->getTimestamp() . // 5 - 19 |
||
70 | $shardId . // 20 - 23 |
||
71 | $obj->vendor . // 24 - 27 |
||
|
|||
72 | $obj->remain; // 28 - 31 |
||
73 | } |
||
74 | |||
91 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: