1 | <?php |
||
29 | class Plane extends Entity implements EntityInterface |
||
30 | { |
||
31 | /** |
||
32 | * Init <a-plane> |
||
33 | * |
||
34 | * The plane primitive creates flat surfaces. |
||
35 | * It is an entity that prescribes the geometry |
||
36 | * with its geometric primitive set to plane. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 2 | public function reset() |
|
46 | |||
47 | /** |
||
48 | * geometry.height |
||
49 | * |
||
50 | * @param float $height |
||
51 | * @return self |
||
|
|||
52 | */ |
||
53 | 2 | public function height(float $height): self |
|
58 | |||
59 | /** |
||
60 | * geometry.width |
||
61 | * |
||
62 | * @param float $width |
||
63 | * @return self |
||
64 | */ |
||
65 | 2 | public function width(float $width): self |
|
70 | } |
||
71 |
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.