1 | <?php |
||
24 | class ApnsBuilder |
||
25 | { |
||
26 | /** |
||
27 | * Get opened push service client. |
||
28 | * |
||
29 | * @param string $certificate |
||
30 | * @param string $passPhrase |
||
31 | * @param bool $sandbox |
||
32 | * |
||
33 | * @throws \Jgut\Tify\Exception\AdapterException |
||
34 | * |
||
35 | * @return \ZendService\Apple\Apns\Client\Message |
||
36 | */ |
||
37 | public function buildPushClient($certificate, $passPhrase = '', $sandbox = false) |
||
41 | |||
42 | /** |
||
43 | * Get opened feedback service client. |
||
44 | * |
||
45 | * @param string $certificate |
||
46 | * @param string $passPhrase |
||
47 | * @param bool $sandbox |
||
48 | * |
||
49 | * @throws \Jgut\Tify\Exception\AdapterException |
||
50 | * |
||
51 | * @return \ZendService\Apple\Apns\Client\Feedback |
||
52 | */ |
||
53 | public function buildFeedbackClient($certificate, $passPhrase = '', $sandbox = false) |
||
57 | |||
58 | /** |
||
59 | * Get opened client. |
||
60 | * |
||
61 | * @param \ZendService\Apple\Apns\Client\AbstractClient $client |
||
62 | * @param string $certificate |
||
63 | * @param string $passPhrase |
||
64 | * @param bool $sandbox |
||
65 | * |
||
66 | * @throws \Jgut\Tify\Exception\AdapterException |
||
67 | * |
||
68 | * @return \ZendService\Apple\Apns\Client\AbstractClient |
||
69 | * |
||
70 | * @codeCoverageIgnore |
||
71 | */ |
||
72 | protected function buildClient(AbstractClient $client, $certificate, $passPhrase = '', $sandbox = false) |
||
86 | |||
87 | /** |
||
88 | * Get service message from origin. |
||
89 | * |
||
90 | * @param \Jgut\Tify\Receiver\ApnsReceiver $receiver |
||
91 | * @param \Jgut\Tify\Notification $notification |
||
92 | * |
||
93 | * @throws \ZendService\Apple\Exception\RuntimeException |
||
94 | * |
||
95 | * @return \ZendService\Apple\Apns\Message |
||
96 | */ |
||
97 | public function buildPushMessage(ApnsReceiver $receiver, Notification $notification) |
||
146 | } |
||
147 |