Skip to content

Commit f7298c5

Browse files
authored
Add include_subscription_ids support to NotificationResolver.php (#173)
* Update NotificationResolver.php for support include_subscription_ids option see https://documentation.onesignal.com/reference/create-notification#send-to-specific-devices * Update notifications_get_all.json for support include_subscription_ids * Update NotificationResolverTest.php for support include_subscription_ids * Update NotificationsTest.php * test typo * typo * typo * codestyle * CodeStyle * cs-fixer * phpDoc * Update PHPDOC * phpdoc
1 parent c8eb8f5 commit f7298c5

15 files changed

+10
-33
lines changed

src/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function createRequest(string $method, string $uri): RequestInterface
3232
}
3333

3434
/**
35-
* @param mixed $value
35+
* @param mixed $value String content with which to populate the stream
3636
*
3737
* @phpstan-param int<1, max> $maxDepth
3838
*/

src/Notifications.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public function getOne(string $id): array
4242
*
4343
* @param int $limit How many notifications to return (max 50)
4444
* @param int $offset Results offset (results are sorted by ID)
45-
* @param int $kind Kind of notifications returned. Default (not set) is all notification types
45+
*
46+
* @phpstan-param int $kind Kind of notifications returned. Default (not set) is all notification types
4647
*/
4748
public function getAll(int $limit = null, int $offset = null/* , int $kind = null */): array
4849
{

src/Resolver/AppOutcomesResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
class AppOutcomesResolver implements ResolverInterface
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
public function resolve(array $data): array
1815
{
1916
return (new OptionsResolver())

src/Resolver/AppResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
class AppResolver implements ResolverInterface
1010
{
11-
/**
12-
* {@inheritdoc}
13-
*/
1411
public function resolve(array $data): array
1512
{
1613
return (new OptionsResolver())

src/Resolver/DeviceFocusResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
class DeviceFocusResolver implements ResolverInterface
1010
{
11-
/**
12-
* {@inheritdoc}
13-
*/
1411
public function resolve(array $data): array
1512
{
1613
return (new OptionsResolver())

src/Resolver/DevicePurchaseResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
class DevicePurchaseResolver implements ResolverInterface
1010
{
11-
/**
12-
* {@inheritdoc}
13-
*/
1411
public function resolve(array $data): array
1512
{
1613
$data = (new OptionsResolver())

src/Resolver/DeviceResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ public function __construct(Config $config, bool $isNewDevice)
1919
$this->isNewDevice = $isNewDevice;
2020
}
2121

22-
/**
23-
* {@inheritdoc}
24-
*/
2522
public function resolve(array $data): array
2623
{
2724
$resolver = (new OptionsResolver())

src/Resolver/DeviceSessionResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
class DeviceSessionResolver implements ResolverInterface
1111
{
12-
/**
13-
* {@inheritdoc}
14-
*/
1512
public function resolve(array $data): array
1613
{
1714
return (new OptionsResolver())

src/Resolver/DeviceTagsResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
class DeviceTagsResolver implements ResolverInterface
1010
{
11-
/**
12-
* {@inheritdoc}
13-
*/
1411
public function resolve(array $data): array
1512
{
1613
return (new OptionsResolver())

src/Resolver/NotificationHistoryResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ public function __construct(Config $config)
1616
$this->config = $config;
1717
}
1818

19-
/**
20-
* {@inheritdoc}
21-
*/
2219
public function resolve(array $data): array
2320
{
2421
return (new OptionsResolver())

0 commit comments

Comments
 (0)