@@ -33,6 +33,9 @@ |
||
33 | 33 | |
34 | 34 | private $name; |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $name |
|
38 | + */ |
|
36 | 39 | public function __construct($name) |
37 | 40 | { |
38 | 41 | $this->name = $name; |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | * |
74 | 74 | * All entities inherently have the position component. |
75 | 75 | * |
76 | - * @param number $x |
|
77 | - * @param number $y |
|
78 | - * @param number $z |
|
76 | + * @param integer $x |
|
77 | + * @param integer $y |
|
78 | + * @param integer $z |
|
79 | 79 | * @return Entity |
80 | 80 | */ |
81 | 81 | public function position($x = 0, $y = 0, $z = 0): EntityInterface |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | * |
90 | 90 | * All entities inherently have the rotation component. |
91 | 91 | * |
92 | - * @param number $x |
|
93 | - * @param number $y |
|
94 | - * @param number $z |
|
95 | - * @return EntityInterface |
|
92 | + * @param integer $x |
|
93 | + * @param integer $y |
|
94 | + * @param integer $z |
|
95 | + * @return \AframeVR\Interfaces\EntityInterface |
|
96 | 96 | */ |
97 | 97 | public function rotation($x = 0, $y = 0, $z = 0): EntityInterface |
98 | 98 | { |
@@ -105,10 +105,10 @@ discard block |
||
105 | 105 | * |
106 | 106 | * All entities inherently have the scale component. |
107 | 107 | * |
108 | - * @param number $x |
|
109 | - * @param number $y |
|
110 | - * @param number $z |
|
111 | - * @return EntityInterface |
|
108 | + * @param integer $x |
|
109 | + * @param integer $y |
|
110 | + * @param integer $z |
|
111 | + * @return \AframeVR\Interfaces\EntityInterface |
|
112 | 112 | */ |
113 | 113 | public function scale($x = 0, $y = 0, $z = 0): EntityInterface |
114 | 114 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * material.color |
41 | 41 | * |
42 | 42 | * @param string $color |
43 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
43 | + * @return EntityInterface |
|
44 | 44 | */ |
45 | 45 | public function color(string $color = 'gray'): EntityInterface |
46 | 46 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * material.metalness |
55 | 55 | * |
56 | 56 | * @param int|float $metalness |
57 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
57 | + * @return EntityInterface |
|
58 | 58 | */ |
59 | 59 | public function metalness(float $metalness = 0): EntityInterface |
60 | 60 | { |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * material.roughness |
69 | 69 | * |
70 | - * @param string $roughness |
|
71 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
70 | + * @param double $roughness |
|
71 | + * @return EntityInterface |
|
72 | 72 | */ |
73 | 73 | public function roughness($roughness = 0.5): EntityInterface |
74 | 74 | { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * material.src |
83 | 83 | * |
84 | 84 | * @param string $src |
85 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
85 | + * @return EntityInterface |
|
86 | 86 | */ |
87 | 87 | public function src(string $src = null): EntityInterface |
88 | 88 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * material.shader |
111 | 111 | * |
112 | 112 | * @param string $shader |
113 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
113 | + * @return EntityInterface |
|
114 | 114 | */ |
115 | 115 | public function shader($shader = 'standard'): EntityInterface |
116 | 116 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * material.opacity |
123 | 123 | * |
124 | 124 | * @param float $opacity |
125 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
125 | + * @return EntityInterface |
|
126 | 126 | */ |
127 | 127 | public function opacity(float $opacity = 1.0): EntityInterface |
128 | 128 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * material.transparent |
135 | 135 | * |
136 | 136 | * @param string $transparent |
137 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
137 | + * @return EntityInterface |
|
138 | 138 | */ |
139 | 139 | public function transparent(string $transparent = 'false'): EntityInterface |
140 | 140 | { |