for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\NotificationBundle\Tests\Iterator;
use Doctrine\Common\Persistence\ManagerRegistry;
use Sonata\NotificationBundle\Iterator\MessageManagerMessageIterator as Iterator;
use Sonata\NotificationBundle\Model\Message;
use Sonata\NotificationBundle\Tests\Entity\MessageManagerMock;
/**
* @author Kevin Nedelec <[email protected]>
class MessageManagerMessageIterator extends Iterator
{
public function __construct(ManagerRegistry $registry, $pause = 0, $batchSize = 10)
parent::__construct(
new MessageManagerMock(Message::class, $registry),
[],
$pause,
$batchSize
);
}
* @param array $types
public function _bufferize($types = []): void
$this->bufferize($types);
public function getBuffer(): array
return $this->buffer;