| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class UserEntityEvent |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var UserEntity |
||
| 26 | */ |
||
| 27 | private $user; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var \DateTimeImmutable |
||
| 31 | */ |
||
| 32 | private $date; |
||
| 33 | |||
| 34 | public function __construct(UserEntity $user) |
||
| 35 | { |
||
| 36 | $this->user = $user; |
||
| 37 | $this->date = new \DateTimeImmutable('now'); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getUser(): UserEntity |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getDate(): \DateTimeImmutable |
||
| 50 |