1 | <?php |
||
20 | class Forwarder extends MailObject |
||
21 | { |
||
22 | /** @var string[] */ |
||
23 | private $recipients; |
||
24 | |||
25 | /** |
||
26 | * Construct the object. |
||
27 | * |
||
28 | * @param string $prefix The part before the @ in the address |
||
29 | * @param Domain $domain The containing domain |
||
30 | * @param array|string $recipients Array or string containing the recipients |
||
31 | */ |
||
32 | public function __construct($prefix, Domain $domain, $recipients) |
||
37 | |||
38 | /** |
||
39 | * Creates a new forwarder. |
||
40 | * |
||
41 | * @param Domain $domain |
||
42 | * @param string $prefix |
||
43 | * @param string|string[] $recipients |
||
44 | * @return Forwarder |
||
45 | */ |
||
46 | public static function create(Domain $domain, $prefix, $recipients) |
||
54 | |||
55 | /** |
||
56 | * Deletes the forwarder. |
||
57 | */ |
||
58 | public function delete() |
||
62 | |||
63 | /** |
||
64 | * Returns a list of the recipients of this forwarder. |
||
65 | * |
||
66 | * @return string[] |
||
67 | */ |
||
68 | public function getRecipients() |
||
72 | |||
73 | /** |
||
74 | * Returns the list of valid aliases for this account. |
||
75 | * |
||
76 | * @return string[] |
||
77 | */ |
||
78 | public function getAliases() |
||
84 | } |
||
85 |