1 | <?php |
||
20 | class ApnsClientBuilder |
||
21 | { |
||
22 | /** |
||
23 | * Get opened push service client. |
||
24 | * |
||
25 | * @param string $certificate |
||
26 | * @param string $passPhrase |
||
27 | * @param bool $sandbox |
||
28 | * |
||
29 | * @throws \Jgut\Tify\Exception\ServiceException |
||
30 | * |
||
31 | * @return \ZendService\Apple\Apns\Client\Message |
||
32 | */ |
||
33 | public static function buildPush($certificate, $passPhrase = '', $sandbox = false) |
||
37 | |||
38 | /** |
||
39 | * Get opened feedback service client. |
||
40 | * |
||
41 | * @param string $certificate |
||
42 | * @param string $passPhrase |
||
43 | * @param bool $sandbox |
||
44 | * |
||
45 | * @return \ZendService\Apple\Apns\Client\Feedback |
||
46 | */ |
||
47 | public static function buildFeedback($certificate, $passPhrase = '', $sandbox = false) |
||
51 | |||
52 | /** |
||
53 | * Get opened client. |
||
54 | * |
||
55 | * @param \ZendService\Apple\Apns\Client\AbstractClient $client |
||
56 | * @param string $certificate |
||
57 | * @param string $passPhrase |
||
58 | * @param bool $sandbox |
||
59 | * |
||
60 | * @return \ZendService\Apple\Apns\Client\AbstractClient |
||
61 | * |
||
62 | * @codeCoverageIgnore |
||
63 | */ |
||
64 | protected static function buildClient(AbstractClient $client, $certificate, $passPhrase = '', $sandbox = false) |
||
78 | } |
||
79 |