1 | <?php |
||
29 | class Videosphere extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Init <a-video> |
||
34 | * |
||
35 | * The video primitive displays a video on a flat plane as a texture. It is an entity that prescribes the geometry |
||
36 | * with its geometric primitive set to plane. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function reset() |
||
52 | |||
53 | /** |
||
54 | * geometry.radius |
||
55 | * |
||
56 | * @param float $radius |
||
|
|||
57 | 3 | * @return self |
|
58 | */ |
||
59 | 3 | public function radius(float $radius = 100): self |
|
64 | 3 | ||
65 | 3 | /** |
|
66 | * Autoplay video |
||
67 | 3 | * |
|
68 | 3 | * @param bool $autoplay |
|
69 | * @return self |
||
70 | */ |
||
71 | public function autoplay(bool $autoplay = true): self |
||
76 | |||
77 | /** |
||
78 | 1 | * geometry.segmentsHeight |
|
79 | * |
||
80 | 1 | * @param int $segmentsHeigh |
|
81 | 1 | * @return self |
|
82 | */ |
||
83 | public function segmentsHeight($segmentsHeigh = 64): self |
||
88 | |||
89 | /** |
||
90 | 1 | * geometry.segmentsWidth |
|
91 | * |
||
92 | 1 | * @param int $segmentsWidth |
|
93 | 1 | * @return self |
|
94 | */ |
||
95 | public function segmentsWidth($segmentsWidth = 64): self |
||
100 | } |
||
101 |
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.