| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait UserCreatorTrait |
||
| 13 | { |
||
| 14 | public ?ResourceNode $resourceNode = null; |
||
| 15 | public ?User $resourceNodeCreator = null; |
||
| 16 | |||
| 17 | public function getCreator(): ?User |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setCreator(User $user) |
||
| 27 | { |
||
| 28 | $this->resourceNodeCreator = $user; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getResourceNodeCreator(): ?User |
||
| 36 | } |
||
| 37 | } |
||
| 38 |