1 | <?php |
||
14 | class Password implements ClaimedResourceInterface |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id() |
||
18 | * @ORM\GeneratedValue() |
||
19 | * @ORM\Column(type="integer") |
||
20 | * @var integer |
||
21 | */ |
||
22 | private $id; |
||
23 | /** |
||
24 | * @ORM\Column(type="string", nullable=false) |
||
25 | * @var string |
||
26 | */ |
||
27 | private $hash; |
||
28 | /** |
||
29 | * @ORM\Column(type="datetime") |
||
30 | * @var \DateTime |
||
31 | */ |
||
32 | private $createdAt; |
||
33 | /** |
||
34 | * @ORM\Column(type="datetime", nullable=false) |
||
35 | * @var \DateTime |
||
36 | */ |
||
37 | private $due; |
||
38 | /** |
||
39 | * @ORM\Column(type="boolean", nullable=false) |
||
40 | * @var boolean |
||
41 | */ |
||
42 | private $active = false; |
||
43 | /** |
||
44 | * @ORM\ManyToOne(targetEntity="\SlayerBirden\DataFlowServer\Domain\Entities\User") |
||
45 | * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") |
||
46 | * @var User |
||
47 | */ |
||
48 | private $owner; |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | 4 | public function getId(): int |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 16 | public function getHash(): string |
|
65 | |||
66 | /** |
||
67 | * @param string $hash |
||
68 | */ |
||
69 | 4 | public function setHash(string $hash): void |
|
73 | |||
74 | /** |
||
75 | * @return \DateTime |
||
76 | */ |
||
77 | 4 | public function getCreatedAt(): \DateTime |
|
81 | |||
82 | /** |
||
83 | * @param \DateTime $createdAt |
||
84 | */ |
||
85 | 4 | public function setCreatedAt(\DateTime $createdAt): void |
|
89 | |||
90 | /** |
||
91 | * @return \DateTime |
||
92 | */ |
||
93 | 16 | public function getDue(): \DateTime |
|
97 | |||
98 | /** |
||
99 | * @param \DateTime $due |
||
100 | */ |
||
101 | 4 | public function setDue(\DateTime $due): void |
|
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | 6 | public function isActive(): bool |
|
113 | |||
114 | /** |
||
115 | * @param bool $active |
||
116 | */ |
||
117 | 6 | public function setActive(bool $active): void |
|
121 | |||
122 | /** |
||
123 | * @return User |
||
124 | */ |
||
125 | 4 | public function getOwner(): User |
|
129 | |||
130 | /** |
||
131 | * @param User $owner |
||
132 | */ |
||
133 | 4 | public function setOwner(User $owner): void |
|
137 | } |
||
138 |