1 | <?php |
||
8 | class AzineMailgunCockpitService |
||
9 | { |
||
10 | private $emailDomain; |
||
11 | private $eventRepository; |
||
12 | private $twig; |
||
13 | |||
14 | private $cachedLastKnownIp; |
||
15 | |||
16 | public function __construct(MailgunEventRepository $eventRepository, \Twig_Environment $twig, $emailDomain) |
||
22 | |||
23 | public function getLastKnownSenderIp() |
||
33 | |||
34 | public function getEmailDomain() |
||
38 | |||
39 | public function getCockpitDataAsArray() |
||
40 | { |
||
41 | return array( |
||
42 | 'lastKnownIp' => $this->getLastKnownSenderIp(), |
||
43 | 'emailDomain' => $this->getEmailDomain() |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | private function getValueOrEmptyString($value) |
||
51 | } |