Passed
Push — master ( ef55bd...d862f0 )
by Iman
02:07
created
src/DynamicRelations.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param null $foreignKey
57 57
      * @param null $localKey
58 58
      *
59
-     * @return \Illuminate\Database\Eloquent\Relations\HasMany
59
+     * @return AbstractRelation
60 60
      */
61 61
     public static function has_many($relationName, string $related, $foreignKey = null, $localKey = null)
62 62
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param  string  $foreignKey
71 71
      * @param  string  $localKey
72 72
      *
73
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
73
+     * @return AbstractRelation
74 74
      */
75 75
     public static function has_one($relationName, $related, $foreignKey = null, $localKey = null)
76 76
     {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param null $foreignKey
84 84
      * @param null $ownerKey
85 85
      *
86
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
86
+     * @return AbstractRelation
87 87
      */
88 88
     public static function belongs_to($relationName, string $related, $foreignKey = null, $ownerKey = null)
89 89
     {
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
      * @param  string  $relatedPivotKey
104 104
      * @param  string  $parentKey
105 105
      * @param  string  $relatedKey
106
-     * @param  string  $relation
107
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
106
+     * @param  string  $relationName
107
+     * @return AbstractRelation
108 108
      */
109 109
     public static function belongs_to_many($relationName, $related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null,
110 110
         $parentKey = null, $relatedKey = null)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param  string  $relatedKey
128 128
      * @param  bool  $inverse
129 129
      *
130
-     * @return \Illuminate\Database\Eloquent\Relations\MorphToMany
130
+     * @return AbstractRelation
131 131
      */
132 132
     public static function morph_to_many($relationName, $related, $name, $table = null, $foreignPivotKey = null,
133 133
         $relatedPivotKey = null, $parentKey = null,
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param  string  $id
150 150
      * @param  string  $localKey
151 151
      *
152
-     * @return \Illuminate\Database\Eloquent\Relations\MorphMany
152
+     * @return AbstractRelation
153 153
      */
154 154
     public static function morph_many($relationName, $related, $name, $type = null, $id = null, $localKey = null)
155 155
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * @param  string  $type
167 167
      * @param  string  $id
168 168
      * @param  string  $localKey
169
-     * @return \Illuminate\Database\Eloquent\Relations\MorphOne
169
+     * @return AbstractRelation
170 170
      */
171 171
     public static function morph_one($relationName, $related, $name, $type = null, $id = null, $localKey = null)
172 172
     {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param  string  $type
183 183
      * @param  string  $id
184 184
      * @param  string  $ownerKey
185
-     * @return \Illuminate\Database\Eloquent\Relations\MorphTo
185
+     * @return AbstractRelation
186 186
      */
187 187
     public static function morph_to($relationName, $type = null, $id = null, $ownerKey = null)
188 188
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param  string|null  $localKey
202 202
      * @param  string|null  $secondLocalKey
203 203
      *
204
-     * @return \Illuminate\Database\Eloquent\Relations\HasManyThrough
204
+     * @return AbstractRelation
205 205
      */
206 206
     public static function has_many_through($relationName, $related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null)
207 207
     {
Please login to merge, or discard this patch.