@@ -554,7 +554,7 @@ |
||
554 | 554 | /** |
555 | 555 | * Is called method allowed for current primitive |
556 | 556 | * |
557 | - * @param unknown $method |
|
557 | + * @param string $method |
|
558 | 558 | */ |
559 | 559 | protected function isPrimitiveMethod($method) |
560 | 560 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | /** |
121 | 121 | * Get DOMAttr for the entity |
122 | 122 | * |
123 | - * @return DOMAttr |
|
123 | + * @return \DOMAttr |
|
124 | 124 | */ |
125 | 125 | public function getDOMAttributes(): \DOMAttr |
126 | 126 | { |
@@ -62,7 +62,6 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Set initial coordinates |
64 | 64 | * |
65 | - * @param string $coordinates |
|
66 | 65 | */ |
67 | 66 | public function __construct($x = 0, $y = 0, $z = 0) |
68 | 67 | { |
@@ -110,7 +109,7 @@ discard block |
||
110 | 109 | /** |
111 | 110 | * Get DOMAttr for the entity |
112 | 111 | * |
113 | - * @return DOMAttr |
|
112 | + * @return \DOMAttr |
|
114 | 113 | */ |
115 | 114 | public function getDOMAttributes(): \DOMAttr |
116 | 115 | { |
@@ -120,7 +119,6 @@ discard block |
||
120 | 119 | /** |
121 | 120 | * Update coordinates |
122 | 121 | * |
123 | - * @param string $coordinates |
|
124 | 122 | */ |
125 | 123 | public function update($x = 0, $y = 0, $z = 0) |
126 | 124 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * material.metalness |
53 | 53 | * |
54 | - * @param string $metalness |
|
54 | + * @param integer $metalness |
|
55 | 55 | * @return \AframeVR\Core\Helpers\MeshAttributes |
56 | 56 | */ |
57 | 57 | public function metalness($metalness = 0) |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * material.roughness |
67 | 67 | * |
68 | - * @param string $roughness |
|
68 | + * @param double $roughness |
|
69 | 69 | * @return \AframeVR\Core\Helpers\MeshAttributes |
70 | 70 | */ |
71 | 71 | public function roughness($roughness = 0.5) |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | /** |
120 | 120 | * material.opacity |
121 | 121 | * |
122 | - * @param string $opacity |
|
122 | + * @param integer $opacity |
|
123 | 123 | * @return \AframeVR\Core\Helpers\MeshAttributes |
124 | 124 | */ |
125 | 125 | public function opacity($opacity = 0) |
@@ -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; |
@@ -62,7 +62,6 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Set initial coordinates |
64 | 64 | * |
65 | - * @param string $coordinates |
|
66 | 65 | */ |
67 | 66 | public function __construct($x = 0, $y = 0, $z = 0) |
68 | 67 | { |
@@ -110,7 +109,7 @@ discard block |
||
110 | 109 | /** |
111 | 110 | * Get DOMAttr for the entity |
112 | 111 | * |
113 | - * @return DOMAttr |
|
112 | + * @return \DOMAttr |
|
114 | 113 | */ |
115 | 114 | public function getDOMAttributes(): \DOMAttr |
116 | 115 | { |
@@ -120,7 +119,6 @@ discard block |
||
120 | 119 | /** |
121 | 120 | * Update coordinates |
122 | 121 | * |
123 | - * @param string $coordinates |
|
124 | 122 | */ |
125 | 123 | public function update($x = 0, $y = 0, $z = 0) |
126 | 124 | { |
@@ -28,12 +28,14 @@ |
||
28 | 28 | /** |
29 | 29 | * Primitve init called from entir=ty constructor must load all components for this primitive |
30 | 30 | * Ex: $this->component('Position') |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function init(); |
33 | 34 | |
34 | 35 | /** |
35 | 36 | * Defaults method is called in primitvie constructor to set |
36 | 37 | * primitives default values for loaded components. |
38 | + * @return void |
|
37 | 39 | */ |
38 | 40 | public function defaults(); |
39 | 41 | } |