1 | <?php |
||
15 | final class EmailValidation |
||
16 | { |
||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | private $address; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $didYouMean; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $isDisposableAddress; |
||
31 | |||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $isRoleAddress; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | private $isValid; |
||
41 | |||
42 | /** |
||
43 | * @var bool |
||
44 | */ |
||
45 | private $mailboxVerification; |
||
46 | |||
47 | /** |
||
48 | * @var Parts |
||
49 | */ |
||
50 | private $parts; |
||
51 | |||
52 | /** |
||
53 | * @var string|null |
||
54 | */ |
||
55 | private $reason; |
||
56 | |||
57 | /** |
||
58 | * EmailValidation constructor. |
||
59 | * |
||
60 | * @param string|null $address |
||
61 | * @param string|null $didYouMean |
||
62 | * @param bool $isDisposableAddress |
||
63 | * @param bool $isRoleAddress |
||
64 | * @param bool $isValid |
||
65 | * @param string|null $mailboxVerification |
||
66 | * @param array $parts |
||
67 | * @param string|null $reason |
||
68 | */ |
||
69 | private function __construct( |
||
88 | |||
89 | /** |
||
90 | * @param array $data |
||
91 | * |
||
92 | * @return EmailValidation |
||
93 | */ |
||
94 | public static function create(array $data) |
||
107 | |||
108 | /** |
||
109 | * @return null|string |
||
110 | */ |
||
111 | public function getAddress() |
||
115 | |||
116 | /** |
||
117 | * @return null|string |
||
118 | */ |
||
119 | public function getDidYouMean() |
||
123 | |||
124 | /** |
||
125 | * @return bool |
||
126 | */ |
||
127 | public function isDisposableAddress() |
||
131 | |||
132 | /** |
||
133 | * @return bool |
||
134 | */ |
||
135 | public function isRoleAddress() |
||
139 | |||
140 | /** |
||
141 | * @return bool |
||
142 | */ |
||
143 | public function isValid() |
||
147 | |||
148 | /** |
||
149 | * @return bool |
||
150 | */ |
||
151 | public function isMailboxVerification() |
||
155 | |||
156 | /** |
||
157 | * @return Parts |
||
158 | */ |
||
159 | public function getParts() |
||
163 | |||
164 | /** |
||
165 | * @return null|string |
||
166 | */ |
||
167 | public function getReason() |
||
171 | } |
||
172 |