Completed
Push — master ( bfb206...232109 )
by Marko
02:47
created
src/Core/Scene.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Interfaces/PrimitiveInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -28,12 +28,14 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/Geometry.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Interfaces/EntityInterface.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/Entity.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Core/Helpers/MeshAttributes.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.