1 | <?php |
||
14 | class Subscription { |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | * |
||
19 | * @ORM\Column(name="full_name", type="string", length=250, options={"default":""}, nullable=false) |
||
20 | */ |
||
21 | private $fullName = ''; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | * |
||
26 | * @ORM\Column(name="email", type="string", length=250, options={"default":""}, nullable=false) |
||
27 | */ |
||
28 | private $email = ''; |
||
29 | |||
30 | /** |
||
31 | * @var \DateTime|null |
||
32 | * |
||
33 | * @ORM\Column(name="export", type="datetime", nullable=true) |
||
34 | */ |
||
35 | private $export; |
||
36 | |||
37 | /** |
||
38 | * @var \DateTime|null |
||
39 | * |
||
40 | * @ORM\Column(name="backup", type="datetime", nullable=true) |
||
41 | */ |
||
42 | private $backup; |
||
43 | |||
44 | /** |
||
45 | * @var integer |
||
46 | * |
||
47 | * @ORM\Column(name="status", type="smallint", options={"default":0}, nullable=true) |
||
48 | */ |
||
49 | private $status = 0; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | * |
||
54 | * @ORM\Column(name="confirmationCode", type="blob", length=16, nullable=true) |
||
55 | */ |
||
56 | private $confirmationCode; |
||
57 | |||
58 | /** |
||
59 | * @var integer |
||
60 | * |
||
61 | * @ORM\Column(name="id", type="integer") |
||
62 | * @ORM\Id |
||
63 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
64 | */ |
||
65 | private $id; |
||
66 | |||
67 | /** |
||
68 | * @ORM\ManyToOne(targetEntity="Address") |
||
69 | * @ORM\JoinColumn(name="address_id", referencedColumnName="id") |
||
70 | */ |
||
71 | private $address; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | * |
||
76 | * @ORM\Column(name="tracking", type="string", length=50, nullable=true) |
||
77 | */ |
||
78 | private $tracking; |
||
79 | |||
80 | /** |
||
81 | * @var string |
||
82 | * |
||
83 | * @ORM\Column(name="source", type="string", length=50, nullable=true) |
||
84 | */ |
||
85 | private $source; |
||
86 | |||
87 | /** |
||
88 | * @var \DateTime |
||
89 | * @Gedmo\Timestampable(on="create") |
||
90 | * @ORM\Column(type="datetime") |
||
91 | */ |
||
92 | private $createdAt; |
||
93 | |||
94 | /* public */ const STATUS_NEW = 0; |
||
95 | /* public */ const STATUS_CONFIRMED = 1; |
||
96 | /* public */ const STATUS_MODERATION = 2; |
||
97 | |||
98 | public function setFullName( string $fullName ): self { |
||
103 | |||
104 | public function getFullName(): string { |
||
107 | |||
108 | public function setEmail( string $email ): self { |
||
113 | |||
114 | public function getEmail(): string { |
||
117 | |||
118 | public function setExport( \DateTime $export = null ): self { |
||
123 | |||
124 | /** |
||
125 | * @return \DateTime|null |
||
126 | */ |
||
127 | public function getExport() { |
||
130 | |||
131 | public function setBackup( \DateTime $backup = null ): self { |
||
136 | |||
137 | /** |
||
138 | * @return \DateTime|null |
||
139 | */ |
||
140 | public function getBackup() { |
||
143 | |||
144 | public function setStatus( int $status ): self { |
||
149 | |||
150 | public function getStatus(): int { |
||
153 | |||
154 | public function setConfirmationCode( string $confirmationCode ): self { |
||
159 | |||
160 | public function getConfirmationCode(): string { |
||
163 | |||
164 | public function getId(): int { |
||
167 | |||
168 | public function getAddress(): Address { |
||
171 | |||
172 | public function setAddress( Address $address ) { |
||
175 | |||
176 | public function getCreatedAt(): \DateTime { |
||
179 | |||
180 | public function setCreatedAt( \DateTime $createdAt ): self { |
||
184 | |||
185 | public function getTracking(): string { |
||
188 | |||
189 | public function setTracking( string $tracking ) { |
||
192 | |||
193 | public function isUnconfirmed(): bool { |
||
196 | |||
197 | public function getHexConfirmationCode(): string { |
||
200 | |||
201 | public function setHexConfirmationCode( string $confirmationCode ) { |
||
204 | |||
205 | public function setSource( string $source ): self { |
||
210 | |||
211 | public function getSource(): string { |
||
214 | |||
215 | } |
||
216 |