1 | <?php |
||
29 | class Box extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Init <a-box> |
||
34 | * |
||
35 | * The box primitive, formerly called <a-cube>, creates shapes such as boxes, cubes, or walls. It is an entity that |
||
36 | * prescribes the geometry with its geometric primitive set to box. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function reset() |
||
45 | |||
46 | 12 | /** |
|
47 | 12 | * geometry.depth |
|
48 | 12 | * |
|
49 | * @param float $depth |
||
50 | * @return \AframeVR\Extras\Primitives\Box |
||
51 | */ |
||
52 | public function depth(float $depth) |
||
57 | 12 | ||
58 | /** |
||
59 | 12 | * geometry.height |
|
60 | 12 | * |
|
61 | 12 | * @param float $height |
|
62 | 12 | * @return \AframeVR\Extras\Primitives\Box |
|
63 | */ |
||
64 | public function height(float $height) |
||
69 | |||
70 | /** |
||
71 | * geometry.width |
||
72 | 12 | * |
|
73 | * @param float $height |
||
|
|||
74 | 12 | * @return \AframeVR\Extras\Primitives\Box |
|
75 | 12 | */ |
|
76 | public function width(float $width) |
||
81 | |||
82 | /** |
||
83 | * Optional: geometry.segmentsHeight |
||
84 | * |
||
85 | * @param int $height |
||
86 | 12 | * @return \AframeVR\Extras\Primitives\Box |
|
87 | */ |
||
88 | 12 | public function segmentsHeight(int $height) |
|
93 | |||
94 | /** |
||
95 | * Optional: geometry.segmentsWidth |
||
96 | * |
||
97 | * @param int $width |
||
98 | * @return \AframeVR\Extras\Primitives\Box |
||
99 | */ |
||
100 | 12 | public function segmentsWidth(int $width) |
|
105 | |||
106 | /** |
||
107 | * Optional: geometry.segmentsDepth |
||
108 | * |
||
109 | * @param int $depth |
||
110 | * @return \AframeVR\Extras\Primitives\Box |
||
111 | */ |
||
112 | public function segmentsDepth(int $depth) |
||
117 | } |
||
118 |
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.