| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait UserTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * User. |
||
| 26 | * |
||
| 27 | * @var UserInterface|null |
||
| 28 | */ |
||
| 29 | private $user; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the user. |
||
| 33 | * |
||
| 34 | * @return UserInterface|null Returns the user. |
||
| 35 | */ |
||
| 36 | public function getUser(): ?UserInterface { |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the user. |
||
| 42 | * |
||
| 43 | * @param UserInterface|null $user The user. |
||
| 44 | * @return self Returns this instance. |
||
| 45 | */ |
||
| 46 | protected function setUser(?UserInterface $user): self { |
||
| 51 |