for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSElasticaBundle package.
*
* (c) FriendsOfSymfony <https://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Persister\Event;
use FOS\ElasticaBundle\Persister\ObjectPersisterInterface;
use FOS\ElasticaBundle\Provider\PagerInterface;
use Symfony\Contracts\EventDispatcher\Event;
final class PostInsertObjectsEvent extends Event implements PersistEvent
{
/**
* @var PagerInterface
private $pager;
* @var ObjectPersisterInterface
private $objectPersister;
* @var object[]
private $objects;
* @var array
private $options;
public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $objects, array $options)
$this->pager = $pager;
$this->objectPersister = $objectPersister;
$this->objects = $objects;
$this->options = $options;
}
public function getPager(): PagerInterface
return $this->pager;
public function getOptions(): array
return $this->options;
public function getObjectPersister(): ObjectPersisterInterface
return $this->objectPersister;
* @return object[]
public function getObjects(): array
return $this->objects;