1 | <?php |
||
29 | class Circle extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Init <a-circle> |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 2 | public function reset() |
|
42 | |||
43 | /** |
||
44 | * geometry.radius |
||
45 | * |
||
46 | * @param float $radius |
||
47 | * @return \AframeVR\Extras\Primitives\Circle |
||
48 | */ |
||
49 | 2 | public function radius(float $radius) |
|
54 | |||
55 | /** |
||
56 | * geometry.segments |
||
57 | * |
||
58 | * @param int $segments |
||
|
|||
59 | * @return \AframeVR\Extras\Primitives\Circle |
||
60 | */ |
||
61 | 2 | public function segments(float $segments) |
|
66 | |||
67 | /** |
||
68 | * geometry.thetaLength |
||
69 | * |
||
70 | * @param float $theta_length |
||
71 | * @return \AframeVR\Extras\Primitives\Circle |
||
72 | */ |
||
73 | 2 | public function thetaLength(float $theta_length) |
|
78 | |||
79 | /** |
||
80 | * geometry.thetaStart |
||
81 | * |
||
82 | * @param int $theta_start |
||
83 | * @return \AframeVR\Extras\Primitives\Circle |
||
84 | */ |
||
85 | 2 | public function thetaStart(float $theta_start) |
|
90 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.