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 | 1 | public function reset() |
|
51 | |||
52 | /** |
||
53 | * Radius of the inner hole of the ring. |
||
54 | * |
||
55 | * @param float $radiusInner |
||
56 | * @return self |
||
|
|||
57 | */ |
||
58 | 1 | public function radiusInner(float $radiusInner): self |
|
63 | |||
64 | /** |
||
65 | * Radius of the outer edge of the ring. |
||
66 | * |
||
67 | * @param float $radiusOuter |
||
68 | * @return self |
||
69 | */ |
||
70 | 1 | public function radiusOuter(float $radiusOuter): self |
|
75 | |||
76 | /** |
||
77 | * Number of triangles within each face defined by segmentsTheta. |
||
78 | * |
||
79 | * @param int $segmentsPhi |
||
80 | * @return self |
||
81 | */ |
||
82 | 1 | public function segmentsPhi(int $segmentsPhi): self |
|
87 | |||
88 | /** |
||
89 | * Number of segments. |
||
90 | * A higher number means the ring will be more round. |
||
91 | * |
||
92 | * @param int $segmentsTheta |
||
93 | * @return self |
||
94 | */ |
||
95 | 1 | public function segmentsTheta(int $segmentsTheta): self |
|
100 | |||
101 | /** |
||
102 | * Central angle in degrees. |
||
103 | * |
||
104 | * @param float $thetaLength |
||
105 | * @return self |
||
106 | */ |
||
107 | 1 | public function thetaLength(float $thetaLength): self |
|
112 | |||
113 | /** |
||
114 | * Starting angle in degrees. |
||
115 | * |
||
116 | * @param float $thetaStart |
||
117 | * @return self |
||
118 | */ |
||
119 | 1 | 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.