| 1 | <?php |
||
| 16 | class FakeConstructable |
||
| 17 | { |
||
| 18 | /** @var mixed|null */ |
||
| 19 | private $a; |
||
|
|
|||
| 20 | /** @var mixed|null */ |
||
| 21 | private $b; |
||
| 22 | /** @var mixed|null */ |
||
| 23 | private $c; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * FakeConstructable constructor. |
||
| 27 | * |
||
| 28 | * @param mixed|null $a |
||
| 29 | * @param mixed|null $b |
||
| 30 | * @param mixed|null $c |
||
| 31 | */ |
||
| 32 | public function __construct($a = null, $b = null, $c = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return mixed|null |
||
| 41 | */ |
||
| 42 | public function getA() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return mixed|null |
||
| 49 | */ |
||
| 50 | public function getB() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return mixed|null |
||
| 57 | */ |
||
| 58 | public function getC() |
||
| 62 | } |
||
| 63 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.