@@ -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 | { |
@@ -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 | } |
@@ -552,7 +552,7 @@ |
||
552 | 552 | /** |
553 | 553 | * Is called method allowed for current primitive |
554 | 554 | * |
555 | - * @param unknown $method |
|
555 | + * @param string $method |
|
556 | 556 | */ |
557 | 557 | protected function isPrimitiveMethod($method) |
558 | 558 | { |
@@ -61,7 +61,6 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Set initial coordinates |
63 | 63 | * |
64 | - * @param string $coordinates |
|
65 | 64 | */ |
66 | 65 | public function __construct($x = 0, $y = 0, $z = 0) |
67 | 66 | { |
@@ -109,7 +108,7 @@ discard block |
||
109 | 108 | /** |
110 | 109 | * Get DOMAttr for the entity |
111 | 110 | * |
112 | - * @return DOMAttr |
|
111 | + * @return \DOMAttr |
|
113 | 112 | */ |
114 | 113 | public function getDOMAttributes(): \DOMAttr |
115 | 114 | { |
@@ -119,7 +118,6 @@ discard block |
||
119 | 118 | /** |
120 | 119 | * Update coordinates |
121 | 120 | * |
122 | - * @param string $coordinates |
|
123 | 121 | */ |
124 | 122 | public function update($x = 0, $y = 0, $z = 0) |
125 | 123 | { |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | * |
61 | 61 | * All entities inherently have the position component. |
62 | 62 | * |
63 | - * @param number $x |
|
64 | - * @param number $y |
|
65 | - * @param number $z |
|
63 | + * @param integer $x |
|
64 | + * @param integer $y |
|
65 | + * @param integer $z |
|
66 | 66 | * @return Entity |
67 | 67 | */ |
68 | 68 | public function position($x = 0, $y = 0, $z = 0): EntityInterface |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | * |
77 | 77 | * All entities inherently have the rotation component. |
78 | 78 | * |
79 | - * @param number $x |
|
80 | - * @param number $y |
|
81 | - * @param number $z |
|
82 | - * @return EntityInterface |
|
79 | + * @param integer $x |
|
80 | + * @param integer $y |
|
81 | + * @param integer $z |
|
82 | + * @return \AframeVR\Interfaces\EntityInterface |
|
83 | 83 | */ |
84 | 84 | public function rotation($x = 0, $y = 0, $z = 0): EntityInterface |
85 | 85 | { |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | * |
93 | 93 | * All entities inherently have the scale component. |
94 | 94 | * |
95 | - * @param number $x |
|
96 | - * @param number $y |
|
97 | - * @param number $z |
|
98 | - * @return EntityInterface |
|
95 | + * @param integer $x |
|
96 | + * @param integer $y |
|
97 | + * @param integer $z |
|
98 | + * @return \AframeVR\Interfaces\EntityInterface |
|
99 | 99 | */ |
100 | 100 | public function scale($x = 0, $y = 0, $z = 0): EntityInterface |
101 | 101 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param string $component_name |
110 | 110 | * @throws BadComponentCallException |
111 | - * @return ComponentInterface |
|
111 | + * @return \AframeVR\Interfaces\ComponentInterface |
|
112 | 112 | */ |
113 | 113 | public function component(string $component_name): ComponentInterface |
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 | { |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * material.metalness |
55 | 55 | * |
56 | - * @param string $metalness |
|
57 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
56 | + * @param integer $metalness |
|
57 | + * @return EntityInterface |
|
58 | 58 | */ |
59 | 59 | public function metalness($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 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * geometry.translate |
97 | 97 | * |
98 | 98 | * @param string $translate |
99 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
99 | + * @return EntityInterface |
|
100 | 100 | */ |
101 | 101 | public function translate($translate = '0 0 0'): EntityInterface |
102 | 102 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * material.shader |
109 | 109 | * |
110 | 110 | * @param string $shader |
111 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
111 | + * @return EntityInterface |
|
112 | 112 | */ |
113 | 113 | public function shader($shader = 'standard'): EntityInterface |
114 | 114 | { |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | /** |
120 | 120 | * material.opacity |
121 | 121 | * |
122 | - * @param string $opacity |
|
123 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
122 | + * @param double $opacity |
|
123 | + * @return EntityInterface |
|
124 | 124 | */ |
125 | 125 | public function opacity(float $opacity = 1.0): EntityInterface |
126 | 126 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * material.transparent |
133 | 133 | * |
134 | 134 | * @param string $transparent |
135 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
135 | + * @return EntityInterface |
|
136 | 136 | */ |
137 | 137 | public function transparent(string $transparent = 'false'): EntityInterface |
138 | 138 | { |