1 | <?php |
||
29 | final class ObjModel extends Entity implements EntityInterface |
||
30 | { |
||
31 | /** |
||
32 | * Init <a-obj-model> |
||
33 | * |
||
34 | * The obj-model component loads a 3D model and material using a Wavefront (.OBJ) file and a .MTL file. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | 3 | public function reset() |
|
42 | |||
43 | /** |
||
44 | * Selector to obj |
||
45 | * |
||
46 | * Selector to an <a-asset-item> pointing to a .OBJ file or an inline path to a .OBJ file. |
||
47 | * |
||
48 | * @param string $selector |
||
49 | * @return self |
||
|
|||
50 | */ |
||
51 | 2 | public function obj(string $selector): self |
|
56 | |||
57 | /** |
||
58 | * Selector to mtl |
||
59 | * |
||
60 | * Selector to an <a-asset-item> pointing to a .MTL file or an inline path to a .MTL file. Optional if you wish to |
||
61 | * use the material component instead. |
||
62 | * |
||
63 | * @param string $selector |
||
64 | * @return self |
||
65 | */ |
||
66 | 2 | public function mtl(string $selector): self |
|
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.