1 | <?php |
||
13 | class Developing implements DevelopingInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | public $time; |
||
20 | |||
21 | /** |
||
22 | * @var Exposures |
||
23 | */ |
||
24 | protected $exposures; |
||
25 | |||
26 | /** |
||
27 | * @var Densities |
||
28 | */ |
||
29 | protected $densities; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $data; |
||
35 | |||
36 | |||
37 | /** |
||
38 | * @param ExposuresProviderInterface|float[] $exposures |
||
39 | * @param DensitiesProviderInterface|float[] $densities |
||
40 | * @param int $time |
||
41 | */ |
||
42 | 48 | public function __construct( $exposures, $densities, int $time) |
|
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | 12 | public function getTime(): int |
|
66 | |||
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | 6 | public function count() |
|
75 | |||
76 | |||
77 | |||
78 | /** |
||
79 | * @inheritDoc |
||
80 | */ |
||
81 | 6 | public function getIterator() |
|
86 | |||
87 | |||
88 | /** |
||
89 | * @inheritDoc |
||
90 | * @return Exposures |
||
91 | */ |
||
92 | 48 | public function getExposures(): ExposuresInterface { |
|
95 | |||
96 | |||
97 | /** |
||
98 | * @param ExposuresProviderInterface|float[] $exposures [description] |
||
99 | * @return $this Fluent interface |
||
100 | */ |
||
101 | 48 | protected function setExposures( $exposures ) |
|
112 | |||
113 | |||
114 | /** |
||
115 | * @inheritDoc |
||
116 | * @return Densities |
||
117 | */ |
||
118 | 48 | public function getDensities(): DensitiesInterface { |
|
121 | |||
122 | |||
123 | /** |
||
124 | * @param DensitiesProviderInterface|float[] $exposures [description] |
||
|
|||
125 | * @return $this Fluent interface |
||
126 | */ |
||
127 | 48 | protected function setDensities( $densities ) |
|
138 | |||
139 | |||
140 | /** |
||
141 | * Checks if a given logH exposure exists in this developing run. |
||
142 | * |
||
143 | * @inheritDoc |
||
144 | */ |
||
145 | 3 | public function has( $logH ) |
|
150 | |||
151 | |||
152 | /** |
||
153 | * Returns the density value for a given logH exposure. |
||
154 | * |
||
155 | * @inheritDoc |
||
156 | * @return float |
||
157 | */ |
||
158 | 3 | public function get( $logH ): float |
|
167 | |||
168 | |||
169 | /** |
||
170 | * @inheritDoc |
||
171 | */ |
||
172 | 12 | public function getData() : array |
|
176 | |||
177 | |||
178 | 42 | protected function resetData() |
|
187 | } |
||
188 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.