| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function getCopiedRole(): Role |
||
| 39 | { |
||
| 40 | if (!$this->hasCopiedRole()) { |
||
| 41 | throw new UnexpectedValueException(sprintf('Return value is not set or not of type %s. Check hasRole() or set it using setRole() before you call the getter.', Role::class)); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $this->copiedRole; |
||
| 45 | } |
||
| 46 | |||
| 52 |