@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * |
724 | 724 | * {@inheritdoc} |
725 | 725 | * |
726 | - * @param unknown $segmentsWidth |
|
726 | + * @param integer $segmentsWidth |
|
727 | 727 | */ |
728 | 728 | protected function segmentsWidth(int $segmentsWidth = null) |
729 | 729 | { |
@@ -759,7 +759,7 @@ discard block |
||
759 | 759 | * |
760 | 760 | * {@inheritdoc} |
761 | 761 | * |
762 | - * @param unknown $segmentsTubular |
|
762 | + * @param integer $segmentsTubular |
|
763 | 763 | */ |
764 | 764 | protected function segmentsTubular(int $segmentsTubular = null) |
765 | 765 | { |
@@ -783,7 +783,7 @@ discard block |
||
783 | 783 | * |
784 | 784 | * {@inheritdoc} |
785 | 785 | * |
786 | - * @param unknown $phiLength |
|
786 | + * @param double $phiLength |
|
787 | 787 | */ |
788 | 788 | protected function phiLength(float $phiLength = null) |
789 | 789 | { |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | * |
844 | 844 | * {@inheritdoc} |
845 | 845 | * |
846 | - * @param unknown $radiusInner |
|
846 | + * @param double $radiusInner |
|
847 | 847 | */ |
848 | 848 | protected function radiusInner(float $radiusInner = null) |
849 | 849 | { |
@@ -855,7 +855,7 @@ discard block |
||
855 | 855 | * |
856 | 856 | * {@inheritdoc} |
857 | 857 | * |
858 | - * @param unknown $radiusOuter |
|
858 | + * @param double $radiusOuter |
|
859 | 859 | */ |
860 | 860 | protected function radiusOuter(float $radiusOuter = null) |
861 | 861 | { |
@@ -867,7 +867,7 @@ discard block |
||
867 | 867 | * |
868 | 868 | * {@inheritdoc} |
869 | 869 | * |
870 | - * @param unknown $arc |
|
870 | + * @param double $arc |
|
871 | 871 | */ |
872 | 872 | protected function arc(float $arc = null) |
873 | 873 | { |
@@ -916,7 +916,7 @@ discard block |
||
916 | 916 | /** |
917 | 917 | * Is called method allowed for current primitive |
918 | 918 | * |
919 | - * @param unknown $method |
|
919 | + * @param string $method |
|
920 | 920 | */ |
921 | 921 | protected function isPrimitiveMethod($method) |
922 | 922 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * mixin |
39 | 39 | * |
40 | 40 | * @param string $name |
41 | - * @return MixinInterface |
|
41 | + * @return \AframeVR\Interfaces\MixinInterface |
|
42 | 42 | */ |
43 | 43 | public function mixin(string $name = 'untitled'): MixinInterface |
44 | 44 | { |
@@ -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 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * Animations |
121 | 121 | * |
122 | 122 | * @param string $name |
123 | - * @return AnimationInterface |
|
123 | + * @return \AframeVR\Interfaces\AnimationInterface |
|
124 | 124 | */ |
125 | 125 | public function animation(string $name = 'untitled'): AnimationInterface |
126 | 126 | { |
@@ -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 | { |
@@ -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 | { |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | /** |
122 | 122 | * material.opacity |
123 | 123 | * |
124 | - * @param string $opacity |
|
125 | - * @return \AframeVR\Core\Helpers\MeshAttributes |
|
124 | + * @param double $opacity |
|
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 | { |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected $entities; |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $name |
|
50 | + */ |
|
48 | 51 | public function __construct($name) |
49 | 52 | { |
50 | 53 | $this->name = $name; |
@@ -75,7 +78,7 @@ discard block |
||
75 | 78 | * Assets |
76 | 79 | * |
77 | 80 | * @param string $name |
78 | - * @return AssetsnInterface |
|
81 | + * @return AssetsInterface |
|
79 | 82 | */ |
80 | 83 | public function assets(string $name = 'untitled'): AssetsInterface |
81 | 84 | { |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | * |
37 | 37 | * All entities inherently have the position component. |
38 | 38 | * |
39 | - * @param number $x |
|
40 | - * @param number $y |
|
41 | - * @param number $z |
|
42 | - * @return Entity |
|
39 | + * @param integer $x |
|
40 | + * @param integer $y |
|
41 | + * @param integer $z |
|
42 | + * @return EntityInterface |
|
43 | 43 | */ |
44 | 44 | public function position($x = 0, $y = 0, $z = 0): EntityInterface; |
45 | 45 | |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | * |
49 | 49 | * All entities inherently have the rotation component. |
50 | 50 | * |
51 | - * @param number $x |
|
52 | - * @param number $y |
|
53 | - * @param number $z |
|
54 | - * @return Entity |
|
51 | + * @param integer $x |
|
52 | + * @param integer $y |
|
53 | + * @param integer $z |
|
54 | + * @return EntityInterface |
|
55 | 55 | */ |
56 | 56 | public function rotation($x = 0, $y = 0, $z = 0): EntityInterface; |
57 | 57 | |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | * |
61 | 61 | * All entities inherently have the scale 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 EntityInterface |
67 | 67 | */ |
68 | 68 | public function scale($x = 0, $y = 0, $z = 0): EntityInterface; |