@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @param $rows |
| 32 | - * @param $sourceKey |
|
| 32 | + * @param string $sourceKey |
|
| 33 | 33 | * @return static |
| 34 | 34 | */ |
| 35 | 35 | public static function fromRows($rows, $sourceKey) |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * @param EntityInterface[] $entities |
| 62 | 62 | * @param string $key the attribute name in $entity that represent this relation |
| 63 | - * @param string $entityKey |
|
| 63 | + * @param string $entityIdKey |
|
| 64 | 64 | * @return $this |
| 65 | 65 | */ |
| 66 | 66 | public function fill($entities, $key, $entityIdKey) |
@@ -77,6 +77,9 @@ discard block |
||
| 77 | 77 | return $this; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $relationName |
|
| 82 | + */ |
|
| 80 | 83 | public function pour(&$rows, $relationName) |
| 81 | 84 | { |
| 82 | 85 | foreach ($rows as &$row) { |