1 | <?php |
||
29 | class Sphere extends Entity implements EntityInterface |
||
30 | { |
||
31 | /** |
||
32 | * Init <a-sphere> |
||
33 | * |
||
34 | * The sphere primitive creates a spherical or polyhedron shapes. |
||
35 | * It wraps an entity that prescribes the geometry component with its geometric primitive set to sphere. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | 4 | public function reset() |
|
48 | |||
49 | /** |
||
50 | * geometry.radius |
||
51 | * |
||
52 | * @param float $radius |
||
53 | * @return \AframeVR\Interfaces\Extras\Primitives\SpherePrimitiveIF |
||
|
|||
54 | */ |
||
55 | 4 | public function radius(float $radius = 0.85): self |
|
60 | |||
61 | /** |
||
62 | * geometry.segmentsHeight |
||
63 | * |
||
64 | * @param int $segmentsHeigh |
||
65 | * @return self |
||
66 | */ |
||
67 | 4 | public function segmentsHeight($segmentsHeigh = 18): self |
|
72 | |||
73 | /** |
||
74 | * geometry.segmentsWidth |
||
75 | * |
||
76 | * @param int $segmentsWidth |
||
77 | * @return self |
||
78 | */ |
||
79 | 4 | public function segmentsWidth($segmentsWidth = 36): self |
|
84 | } |
||
85 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.