| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 89 | public function setData(ARecord $record, string $storeKey, ?string $parentAlias, string $knownAs = ''): self |
|
| 22 | { |
||
| 23 | 89 | $this->record = $record; |
|
| 24 | 89 | $this->parentAlias = $parentAlias; |
|
| 25 | 89 | $this->storeKey = $storeKey; |
|
| 26 | 89 | $this->knownAs = empty($knownAs) ? $storeKey : $knownAs ; |
|
| 27 | 89 | return $this; |
|
| 28 | } |
||
| 50 |