updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -11,31 +11,33 @@
namespace Sly\NotificationPusher\Collection;
use ArrayIterator;
use Countable;
use IteratorAggregate;
use SeekableIterator;
use Sly\NotificationPusher\Model\MessageInterface;
/**
* AbstractCollection.
*
* @uses \IteratorAggregate
* @author Cédric Dugat <cedric@dugat.me>
*/
abstract class AbstractCollection implements \IteratorAggregate, \Countable
abstract class AbstractCollection implements IteratorAggregate, Countable
{
/**
* @var \ArrayIterator
* @var ArrayIterator
*/
protected $coll;
/**
* @inheritdoc
* @return \ArrayIterator|\SeekableIterator
* @return ArrayIterator|SeekableIterator
*/
abstract public function getIterator();
/**
* Get.
*
* @param string $key Key
*
* @return \Sly\NotificationPusher\Model\MessageInterface|false
* @return MessageInterface|false
*/
public function get($key)
{
@@ -43,8 +45,6 @@ abstract class AbstractCollection implements \IteratorAggregate, \Countable
}
/**
* Count.
*
* @return integer
*/
public function count()
@@ -53,8 +53,6 @@ abstract class AbstractCollection implements \IteratorAggregate, \Countable
}
/**
* isEmpty.
*
* @return boolean
*/
public function isEmpty()
@@ -67,7 +65,7 @@ abstract class AbstractCollection implements \IteratorAggregate, \Countable
*/
public function clear()
{
$this->coll = new \ArrayIterator();
$this->coll = new ArrayIterator();
}
/**

View File

@@ -14,17 +14,13 @@ namespace Sly\NotificationPusher\Collection;
use Sly\NotificationPusher\Model\DeviceInterface;
/**
* DeviceCollection.
*
* @uses \Sly\NotificationPusher\Collection\AbstractCollection
* @uses \IteratorAggregate
* @author Cédric Dugat <cedric@dugat.me>
*/
class DeviceCollection extends AbstractCollection implements \IteratorAggregate
class DeviceCollection extends AbstractCollection
{
/**
* Constructor.
*
* @param array $devices Devices
*/
public function __construct(array $devices = [])
@@ -45,7 +41,7 @@ class DeviceCollection extends AbstractCollection implements \IteratorAggregate
}
/**
* @param \Sly\NotificationPusher\Model\DeviceInterface $device Device
* @param DeviceInterface $device Device
*/
public function add(DeviceInterface $device)
{
@@ -53,8 +49,6 @@ class DeviceCollection extends AbstractCollection implements \IteratorAggregate
}
/**
* Get tokens.
*
* @return array
*/
public function getTokens()

View File

@@ -14,17 +14,12 @@ namespace Sly\NotificationPusher\Collection;
use Sly\NotificationPusher\Model\MessageInterface;
/**
* MessageCollection.
*
* @uses \Sly\NotificationPusher\Collection\AbstractCollection
* @uses \IteratorAggregate
* @author Cédric Dugat <cedric@dugat.me>
*/
class MessageCollection extends AbstractCollection implements \IteratorAggregate
class MessageCollection extends AbstractCollection
{
/**
* Constructor.
*/
public function __construct()
{
$this->coll = new \ArrayIterator();
@@ -39,7 +34,7 @@ class MessageCollection extends AbstractCollection implements \IteratorAggregate
}
/**
* @param \Sly\NotificationPusher\Model\MessageInterface $message Message
* @param MessageInterface $message Message
*/
public function add(MessageInterface $message)
{

View File

@@ -14,17 +14,12 @@ namespace Sly\NotificationPusher\Collection;
use Sly\NotificationPusher\Model\PushInterface;
/**
* PushCollection.
*
* @uses \Sly\NotificationPusher\Collection\AbstractCollection
* @uses \IteratorAggregate
* @author Cédric Dugat <cedric@dugat.me>
*/
class PushCollection extends AbstractCollection
{
/**
* Constructor.
*/
public function __construct()
{
$this->coll = new \ArrayIterator();
@@ -39,7 +34,7 @@ class PushCollection extends AbstractCollection
}
/**
* @param \Sly\NotificationPusher\Model\PushInterface $push Push
* @param PushInterface $push Push
*/
public function add(PushInterface $push)
{

View File

@@ -22,9 +22,6 @@ namespace Sly\NotificationPusher\Collection;
*/
class ResponseCollection extends AbstractCollection
{
/**
* Constructor.
*/
public function __construct()
{
$this->coll = new \ArrayIterator();