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 init() |
||
45 | |||
46 | /** |
||
47 | * Set defaults |
||
48 | * |
||
49 | * {@inheritdoc} |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function defaults() |
||
65 | |||
66 | /** |
||
67 | * geometry.radius |
||
68 | * |
||
69 | * @param float $radius |
||
|
|||
70 | * @return self |
||
71 | */ |
||
72 | public function radius(float $radius = 100): self |
||
77 | |||
78 | /** |
||
79 | * Autoplay video |
||
80 | * |
||
81 | * @param bool $autoplay |
||
82 | * @return self |
||
83 | */ |
||
84 | public function autoplay(bool $autoplay = true): self |
||
89 | |||
90 | /** |
||
91 | * geometry.segmentsHeight |
||
92 | * |
||
93 | * @param int $segmentsHeigh |
||
94 | * @return self |
||
95 | */ |
||
96 | public function segmentsHeight($segmentsHeigh = 64): self |
||
101 | |||
102 | /** |
||
103 | * geometry.segmentsWidth |
||
104 | * |
||
105 | * @param int $segmentsWidth |
||
106 | * @return self |
||
107 | */ |
||
108 | public function segmentsWidth($segmentsWidth = 64): self |
||
113 | } |
||
114 |
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.