1 | <?php |
||
23 | class Plan implements PlanInterface |
||
24 | { |
||
25 | // public static function instantiate($row) |
||
|
|||
26 | // { |
||
27 | // return new static; |
||
28 | // } |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $id; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $name; |
||
39 | |||
40 | /** |
||
41 | * @var Plan|null |
||
42 | * XXX not sure to implement |
||
43 | */ |
||
44 | protected $parent; |
||
45 | |||
46 | /** |
||
47 | * @var CustomerInterface |
||
48 | */ |
||
49 | protected $seller; |
||
50 | |||
51 | /** |
||
52 | * @var PriceInterface[] |
||
53 | */ |
||
54 | protected $prices = []; |
||
55 | |||
56 | /** |
||
57 | * @param PriceInterface[] $prices |
||
58 | 1 | */ |
|
59 | public function __construct( |
||
70 | |||
71 | /** |
||
72 | * @return PriceInterface[] |
||
73 | */ |
||
74 | public function getPrices() |
||
78 | |||
79 | /** |
||
80 | * Calculate charges for given action. |
||
81 | * @param ActionInterface $action |
||
82 | * @return Charge[] |
||
83 | 1 | */ |
|
84 | public function calculateCharges(ActionInterface $action) |
||
96 | |||
97 | public function jsonSerialize() |
||
101 | } |
||
102 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.