1 | <?php |
||
29 | class Box extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Init <a-box> |
||
34 | * |
||
35 | * The box primitive, formerly called <a-cube>, creates shapes such as boxes, cubes, or walls. It is an entity that |
||
36 | * prescribes the geometry with its geometric primitive set to box. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 5 | public function reset() |
|
48 | |||
49 | /** |
||
50 | * geometry.depth |
||
51 | * |
||
52 | * @param float $depth |
||
53 | * @return self |
||
|
|||
54 | */ |
||
55 | 5 | public function depth(float $depth): self |
|
60 | |||
61 | /** |
||
62 | * geometry.height |
||
63 | * |
||
64 | * @param float $height |
||
65 | * @return self |
||
66 | */ |
||
67 | 5 | public function height(float $height): self |
|
72 | |||
73 | /** |
||
74 | * geometry.width |
||
75 | * |
||
76 | * @param float $height |
||
77 | * @return self |
||
78 | */ |
||
79 | 5 | public function width(float $width): self |
|
84 | |||
85 | /** |
||
86 | * Optional: geometry.segmentsHeight |
||
87 | * |
||
88 | * @param int $height |
||
89 | * @return self |
||
90 | */ |
||
91 | public function segmentsHeight(int $height): self |
||
96 | |||
97 | /** |
||
98 | * Optional: geometry.segmentsWidth |
||
99 | * |
||
100 | * @param int $width |
||
101 | * @return self |
||
102 | */ |
||
103 | public function segmentsWidth(int $width): self |
||
108 | |||
109 | /** |
||
110 | * Optional: geometry.segmentsDepth |
||
111 | * |
||
112 | * @param int $depth |
||
113 | * @return self |
||
114 | */ |
||
115 | public function segmentsDepth(int $depth): self |
||
120 | } |
||
121 |
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.