1 | <?php |
||
29 | final class Ring extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Reset <a-ring> |
||
34 | * |
||
35 | * The ring primitive creates a ring or disc shape. It is an entity that prescribes the geometry with its geometric |
||
36 | * primitive set to ring. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function reset() |
||
51 | 5 | ||
52 | 5 | /** |
|
53 | 5 | * Radius of the inner hole of the ring. |
|
54 | 5 | * |
|
55 | 5 | * @param float $radiusInner |
|
56 | 5 | * @return self |
|
|
|||
57 | 5 | */ |
|
58 | public function radiusInner(float $radiusInner): self |
||
63 | |||
64 | /** |
||
65 | 5 | * Radius of the outer edge of the ring. |
|
66 | * |
||
67 | 5 | * @param float $radiusOuter |
|
68 | 5 | * @return self |
|
69 | */ |
||
70 | public function radiusOuter(float $radiusOuter): self |
||
75 | |||
76 | /** |
||
77 | 5 | * Number of triangles within each face defined by segmentsTheta. |
|
78 | * |
||
79 | 5 | * @param int $segmentsPhi |
|
80 | 5 | * @return self |
|
81 | */ |
||
82 | public function segmentsPhi(int $segmentsPhi): self |
||
87 | |||
88 | /** |
||
89 | 5 | * Number of segments. |
|
90 | * A higher number means the ring will be more round. |
||
91 | 5 | * |
|
92 | 5 | * @param int $segmentsTheta |
|
93 | * @return self |
||
94 | */ |
||
95 | public function segmentsTheta(int $segmentsTheta): self |
||
100 | |||
101 | /** |
||
102 | 5 | * Central angle in degrees. |
|
103 | * |
||
104 | 5 | * @param float $thetaLength |
|
105 | 5 | * @return self |
|
106 | */ |
||
107 | public function thetaLength(float $thetaLength): self |
||
112 | |||
113 | /** |
||
114 | 5 | * Starting angle in degrees. |
|
115 | * |
||
116 | 5 | * @param float $thetaStart |
|
117 | 5 | * @return self |
|
118 | */ |
||
119 | public function thetaStart(float $thetaStart): self |
||
124 | } |
||
125 |
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.