@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Set service. |
97 | 97 | * |
98 | - * @param \Jgut\Pusha\Service\AbstractService $service |
|
98 | + * @param AbstractService $service |
|
99 | 99 | */ |
100 | 100 | abstract public function setService(AbstractService $service); |
101 | 101 | |
@@ -168,7 +168,6 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * Set notification pending (not pushed). |
170 | 170 | * |
171 | - * @param array $result |
|
172 | 171 | */ |
173 | 172 | final public function setPending() |
174 | 173 | { |
@@ -9,10 +9,10 @@ |
||
9 | 9 | |
10 | 10 | namespace Jgut\Tify\Notification; |
11 | 11 | |
12 | -use Jgut\Tify\Service\AbstractService; |
|
13 | 12 | use Jgut\Tify\Device\AbstractDevice; |
14 | 13 | use Jgut\Tify\Message\AbstractMessage; |
15 | 14 | use Jgut\Tify\OptionsTrait; |
15 | +use Jgut\Tify\Service\AbstractService; |
|
16 | 16 | |
17 | 17 | abstract class AbstractNotification |
18 | 18 | { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * Get option. |
43 | 43 | * |
44 | 44 | * @param string $option |
45 | - * @param mixed $default |
|
45 | + * @param integer $default |
|
46 | 46 | * |
47 | 47 | * @return mixed |
48 | 48 | */ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param array $options |
58 | 58 | * |
59 | - * @return \Jgut\Tify\Model\BaseOptionedModel |
|
59 | + * @return OptionsTrait |
|
60 | 60 | */ |
61 | 61 | public function setOptions($options) |
62 | 62 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Get parameter. |
33 | 33 | * |
34 | 34 | * @param string $parameter |
35 | - * @param mixed $default |
|
35 | + * @param integer $default |
|
36 | 36 | * |
37 | 37 | * @return mixed |
38 | 38 | */ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param array $parameters |
58 | 58 | * |
59 | - * @return \Jgut\Tify\Model\BaseParameteredModel |
|
59 | + * @return ParametersTrait |
|
60 | 60 | */ |
61 | 61 | public function setParameters($parameters) |
62 | 62 | { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -162,7 +162,7 @@ |
||
162 | 162 | /** |
163 | 163 | * Get opened ServiceClient |
164 | 164 | * |
165 | - * @return \ZendService\Apple\Apns\Client\AbstractClient |
|
165 | + * @return \ZendService\Apple\Apns\Message |
|
166 | 166 | */ |
167 | 167 | protected function getPushService() |
168 | 168 | { |
@@ -9,8 +9,8 @@ |
||
9 | 9 | |
10 | 10 | namespace Jgut\Tify\Service; |
11 | 11 | |
12 | -use Jgut\Tify\Exception\ServiceException; |
|
13 | 12 | use Jgut\Tify\Exception\NotificationException; |
13 | +use Jgut\Tify\Exception\ServiceException; |
|
14 | 14 | use Jgut\Tify\Notification\AbstractNotification; |
15 | 15 | use Jgut\Tify\Notification\Apns as ApnsNotification; |
16 | 16 | use Jgut\Tify\Service\Client\ApnsBuilder as ClientBuilder; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -39,7 +39,6 @@ |
||
39 | 39 | /** |
40 | 40 | * Set notification payload data. |
41 | 41 | * |
42 | - * @param array $data |
|
43 | 42 | */ |
44 | 43 | public function setNotificationPayload(array $payload) |
45 | 44 | { |
@@ -9,10 +9,10 @@ |
||
9 | 9 | |
10 | 10 | namespace Jgut\Tify\Service\Message; |
11 | 11 | |
12 | -use Zend\Json\Json; |
|
13 | 12 | use ZendService\Google\Exception\InvalidArgumentException; |
14 | 13 | use ZendService\Google\Exception\RuntimeException; |
15 | 14 | use ZendService\Google\Gcm\Message as ServiceMessage; |
15 | +use Zend\Json\Json; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Custom GCM service message. |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -29,8 +29,7 @@ |
||
29 | 29 | $message = $notification->getMessage(); |
30 | 30 | |
31 | 31 | $badge = ((int) $notification->getOption('badge', 0) === 0) |
32 | - ? null : |
|
33 | - $notification->getOption('badge') + (int) $device->getParameter('badge', 0); |
|
32 | + ? null : $notification->getOption('badge') + (int) $device->getParameter('badge', 0); |
|
34 | 33 | |
35 | 34 | $pushMessage = new Message(); |
36 | 35 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | - * |
|
5 | - * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | - * |
|
7 | - * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | - */ |
|
3 | + * Push notification services abstraction (http://github.com/juliangut/tify) |
|
4 | + * |
|
5 | + * @link https://github.com/juliangut/tify for the canonical source repository |
|
6 | + * |
|
7 | + * @license https://github.com/juliangut/tify/blob/master/LICENSE |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |