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 | public function reset() |
||
46 | |||
47 | 12 | /** |
|
48 | 12 | * geometry.height |
|
49 | * |
||
50 | * @param float $height |
||
51 | 12 | * @return self |
|
|
|||
52 | */ |
||
53 | public function height(float $height): self |
||
58 | |||
59 | /** |
||
60 | 11 | * geometry.width |
|
61 | * |
||
62 | 11 | * @param float $width |
|
63 | 11 | * @return self |
|
64 | 11 | */ |
|
65 | 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.