1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the Zikula package. |
7
|
|
|
* |
8
|
|
|
* Copyright Zikula - https://ziku.la/ |
9
|
|
|
* |
10
|
|
|
* For the full copyright and license information, please view the LICENSE |
11
|
|
|
* file that was distributed with this source code. |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
namespace Zikula\LegalBundle\Entity; |
15
|
|
|
|
16
|
|
|
use Doctrine\ORM\Mapping as ORM; |
17
|
|
|
|
18
|
|
|
trait LegalAwareUserTrait |
19
|
|
|
{ |
20
|
|
|
#[ORM\Column(nullable: true)] |
21
|
|
|
private ?\DateTime $privacyPolicyAccepted = null; |
22
|
|
|
|
23
|
|
|
#[ORM\Column(nullable: true)] |
24
|
|
|
private ?\DateTime $termsOfUseAccepted = null; |
25
|
|
|
|
26
|
|
|
#[ORM\Column(nullable: true)] |
27
|
|
|
private ?\DateTime $tradeConditionsAccepted = null; |
28
|
|
|
|
29
|
|
|
#[ORM\Column(nullable: true)] |
30
|
|
|
private ?\DateTime $cancellationRightPolicyAccepted = null; |
31
|
|
|
|
32
|
|
|
#[ORM\Column(nullable: true)] |
33
|
|
|
private ?\DateTime $agePolicyAccepted = null; |
34
|
|
|
|
35
|
|
|
public function getPrivacyPolicyAccepted(): ?\DateTime |
36
|
|
|
{ |
37
|
|
|
return $this->privacyPolicyAccepted; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
public function setPrivacyPolicyAccepted(?\DateTime $privacyPolicyAccepted): self |
41
|
|
|
{ |
42
|
|
|
$this->privacyPolicyAccepted = $privacyPolicyAccepted; |
43
|
|
|
|
44
|
|
|
return $this; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
public function getTermsOfUseAccepted(): ?\DateTime |
48
|
|
|
{ |
49
|
|
|
return $this->termsOfUseAccepted; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
public function setTermsOfUseAccepted(?\DateTime $termsOfUseAccepted): self |
53
|
|
|
{ |
54
|
|
|
$this->termsOfUseAccepted = $termsOfUseAccepted; |
55
|
|
|
|
56
|
|
|
return $this; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
public function getTradeConditionsAccepted(): ?\DateTime |
60
|
|
|
{ |
61
|
|
|
return $this->tradeConditionsAccepted; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function setTradeConditionsAccepted(?\DateTime $tradeConditionsAccepted): self |
65
|
|
|
{ |
66
|
|
|
$this->tradeConditionsAccepted = $tradeConditionsAccepted; |
67
|
|
|
|
68
|
|
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function getCancellationRightPolicyAccepted(): ?\DateTime |
72
|
|
|
{ |
73
|
|
|
return $this->cancellationRightPolicyAccepted; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
public function setCancellationRightPolicyAccepted(?\DateTime $cancellationRightPolicyAccepted): self |
77
|
|
|
{ |
78
|
|
|
$this->cancellationRightPolicyAccepted = $cancellationRightPolicyAccepted; |
79
|
|
|
|
80
|
|
|
return $this; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function getAgePolicyAccepted(): ?\DateTime |
84
|
|
|
{ |
85
|
|
|
return $this->agePolicyAccepted; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function setAgePolicyAccepted(?\DateTime $agePolicyAccepted): self |
89
|
|
|
{ |
90
|
|
|
$this->agePolicyAccepted = $agePolicyAccepted; |
91
|
|
|
|
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
} |
95
|
|
|
|