1 | <?php |
||
10 | class SesIdentity |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $identity; |
||
16 | |||
17 | /** |
||
18 | * Identity constructor. |
||
19 | * |
||
20 | * @param string $identity emailAddress|domain |
||
21 | * |
||
22 | * @throws InvalidIdentityException |
||
23 | */ |
||
24 | 4 | public function __construct($identity) |
|
34 | |||
35 | /** |
||
36 | * Get the identity. If correct, this is either an email address or domain |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | 1 | public function getIdentity() |
|
44 | |||
45 | /** |
||
46 | * Get the type for this identity |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | 1 | public function getType() |
|
58 | |||
59 | /** |
||
60 | * Get the domain for this identity |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 1 | public function getDomain() |
|
72 | } |
||
73 |