1 | <?php |
||
14 | class UserRenameEvent |
||
15 | { |
||
16 | /** |
||
17 | * @var integer |
||
18 | * |
||
19 | * @ORM\Column(name="id", type="integer") |
||
20 | * @ORM\Id |
||
21 | * @ORM\GeneratedValue(strategy="AUTO") |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @var User |
||
27 | * |
||
28 | * @ORM\ManyToOne(targetEntity="Skobkin\Bundle\PointToolsBundle\Entity\User") |
||
29 | * @ORM\JoinColumn(name="user_id", nullable=false, onDelete="CASCADE") |
||
30 | */ |
||
31 | private $user; |
||
32 | |||
33 | /** |
||
34 | * @var \DateTime |
||
35 | * |
||
36 | * @ORM\Column(name="date", type="datetime") |
||
37 | */ |
||
38 | private $date; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | * |
||
43 | * @ORM\Column(name="old_login", type="text") |
||
44 | */ |
||
45 | private $oldLogin; |
||
46 | |||
47 | |||
48 | public function __construct(User $user, string $old) |
||
54 | |||
55 | public function getId(): int |
||
59 | |||
60 | public function getDate(): \DateTime |
||
64 | |||
65 | public function getUser(): User |
||
69 | |||
70 | public function getOldLogin(): string |
||
74 | } |
||
75 |