1 | <?php |
||
30 | class Videosphere extends Entity implements VideospherePrimitiveIF |
||
31 | { |
||
32 | use MeshAttributes; |
||
33 | |||
34 | /** |
||
35 | * Init <a-sphere> |
||
36 | * |
||
37 | * The sphere primitive creates a spherical or polyhedron shapes. |
||
38 | * It wraps an entity that prescribes the geometry component with its geometric primitive set to sphere. |
||
39 | * |
||
40 | * {@inheritdoc} |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 3 | public function init() |
|
49 | |||
50 | /** |
||
51 | * Set defaults |
||
52 | * |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | 3 | public function defaults() |
|
69 | |||
70 | /** |
||
71 | * geometry.radius |
||
72 | * |
||
73 | * {@inheritdoc} |
||
74 | * |
||
75 | * @param float $radius |
||
|
|||
76 | * @return VideospherePrimitiveIF |
||
77 | */ |
||
78 | 1 | public function radius(float $radius = 100): VideospherePrimitiveIF |
|
83 | |||
84 | /** |
||
85 | * Autoplay video |
||
86 | * |
||
87 | * @param bool $autoplay |
||
88 | * @return AssetVideoInterface |
||
89 | */ |
||
90 | 1 | public function autoplay(bool $autoplay = true): VideospherePrimitiveIF |
|
95 | |||
96 | /** |
||
97 | * geometry.segmentsHeight |
||
98 | * |
||
99 | * {@inheritdoc} |
||
100 | * |
||
101 | * @param int $segmentsHeigh |
||
102 | * @return VideospherePrimitiveIF |
||
103 | */ |
||
104 | 1 | public function segmentsHeight($segmentsHeigh = 64): VideospherePrimitiveIF |
|
109 | |||
110 | /** |
||
111 | * geometry.segmentsWidth |
||
112 | * |
||
113 | * {@inheritdoc} |
||
114 | * |
||
115 | * @param int $segmentsWidth |
||
116 | * @return VideospherePrimitiveIF |
||
117 | */ |
||
118 | 1 | public function segmentsWidth($segmentsWidth = 64): VideospherePrimitiveIF |
|
123 | } |
||
124 |
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.