| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class DeletedRegistrationEvent |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var UserEntity |
||
| 30 | */ |
||
| 31 | private $user; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var \DateTimeImmutable |
||
| 35 | */ |
||
| 36 | private $date; |
||
| 37 | |||
| 38 | public function __construct(UserEntity $user) |
||
| 39 | { |
||
| 40 | $this->user = $user; |
||
| 41 | $this->date = new \DateTimeImmutable('now'); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getUser(): UserEntity |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getDate(): \DateTimeImmutable |
||
| 52 | } |
||
| 53 | } |
||
| 54 |