@@ -34,12 +34,12 @@ abstract class EmbedsOneOrMany extends Relation
34
34
/**
35
35
* Create a new embeds many relationship instance.
36
36
*
37
- * @param Builder $query
38
- * @param Model $parent
39
- * @param Model $related
40
- * @param string $localKey
41
- * @param string $foreignKey
42
- * @param string $relation
37
+ * @param Builder $query
38
+ * @param Model $parent
39
+ * @param Model $related
40
+ * @param string $localKey
41
+ * @param string $foreignKey
42
+ * @param string $relation
43
43
*/
44
44
public function __construct (Builder $ query , Model $ parent , Model $ related , $ localKey , $ foreignKey , $ relation )
45
45
{
@@ -95,7 +95,7 @@ public function match(array $models, Collection $results, $relation)
95
95
/**
96
96
* Shorthand to get the results of the relationship.
97
97
*
98
- * @param array $columns
98
+ * @param array $columns
99
99
* @return Collection
100
100
*/
101
101
public function get ($ columns = ['* ' ])
@@ -116,7 +116,7 @@ public function count()
116
116
/**
117
117
* Attach a model instance to the parent model.
118
118
*
119
- * @param Model $model
119
+ * @param Model $model
120
120
* @return Model|bool
121
121
*/
122
122
public function save (Model $ model )
@@ -129,7 +129,7 @@ public function save(Model $model)
129
129
/**
130
130
* Attach a collection of models to the parent instance.
131
131
*
132
- * @param Collection|array $models
132
+ * @param Collection|array $models
133
133
* @return Collection|array
134
134
*/
135
135
public function saveMany ($ models )
@@ -144,7 +144,7 @@ public function saveMany($models)
144
144
/**
145
145
* Create a new instance of the related model.
146
146
*
147
- * @param array $attributes
147
+ * @param array $attributes
148
148
* @return Model
149
149
*/
150
150
public function create (array $ attributes = [])
@@ -164,7 +164,7 @@ public function create(array $attributes = [])
164
164
/**
165
165
* Create an array of new instances of the related model.
166
166
*
167
- * @param array $records
167
+ * @param array $records
168
168
* @return array
169
169
*/
170
170
public function createMany (array $ records )
@@ -181,7 +181,7 @@ public function createMany(array $records)
181
181
/**
182
182
* Transform single ID, single Model or array of Models into an array of IDs.
183
183
*
184
- * @param mixed $ids
184
+ * @param mixed $ids
185
185
* @return array
186
186
*/
187
187
protected function getIdsArrayFrom ($ ids )
@@ -236,7 +236,7 @@ protected function setEmbedded($records)
236
236
/**
237
237
* Get the foreign key value for the relation.
238
238
*
239
- * @param mixed $id
239
+ * @param mixed $id
240
240
* @return mixed
241
241
*/
242
242
protected function getForeignKeyValue ($ id )
@@ -252,7 +252,7 @@ protected function getForeignKeyValue($id)
252
252
/**
253
253
* Convert an array of records to a Collection.
254
254
*
255
- * @param array $records
255
+ * @param array $records
256
256
* @return Collection
257
257
*/
258
258
protected function toCollection (array $ records = [])
@@ -273,7 +273,7 @@ protected function toCollection(array $records = [])
273
273
/**
274
274
* Create a related model instanced.
275
275
*
276
- * @param array $attributes
276
+ * @param array $attributes
277
277
* @return Model
278
278
*/
279
279
protected function toModel ($ attributes = [])
@@ -342,7 +342,7 @@ protected function isNested()
342
342
/**
343
343
* Get the fully qualified local key name.
344
344
*
345
- * @param string $glue
345
+ * @param string $glue
346
346
* @return string
347
347
*/
348
348
protected function getPathHierarchy ($ glue = '. ' )
@@ -380,7 +380,7 @@ protected function getParentKey()
380
380
* Return update values.
381
381
*
382
382
* @param $array
383
- * @param string $prepend
383
+ * @param string $prepend
384
384
* @return array
385
385
*/
386
386
public static function getUpdateValues ($ array , $ prepend = '' )
@@ -407,8 +407,8 @@ public function getQualifiedForeignKeyName()
407
407
/**
408
408
* Get the name of the "where in" method for eager loading.
409
409
*
410
- * @param \Illuminate\Database\Eloquent\Model $model
411
- * @param string $key
410
+ * @param \Illuminate\Database\Eloquent\Model $model
411
+ * @param string $key
412
412
* @return string
413
413
*/
414
414
protected function whereInMethod (EloquentModel $ model , $ key )
0 commit comments