Code Duplication    Length = 7-13 lines in 3 locations

src/Persister/Event/PostInsertObjectsEvent.php 1 location

@@ 40-46 (lines=7) @@
37
     */
38
    private $options;
39
40
    public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $objects, array $options)
41
    {
42
        $this->pager = $pager;
43
        $this->objectPersister = $objectPersister;
44
        $this->objects = $objects;
45
        $this->options = $options;
46
    }
47
48
    public function getPager(): PagerInterface
49
    {

src/Persister/Event/PreInsertObjectsEvent.php 1 location

@@ 40-46 (lines=7) @@
37
     */
38
    private $options;
39
40
    public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $objects, array $options)
41
    {
42
        $this->pager = $pager;
43
        $this->objectPersister = $objectPersister;
44
        $this->objects = $objects;
45
        $this->options = $options;
46
    }
47
48
    public function getPager(): PagerInterface
49
    {

src/Persister/Event/OnExceptionEvent.php 1 location

@@ 50-62 (lines=13) @@
47
     */
48
    private $ignored = false;
49
50
    public function __construct(
51
        PagerInterface $pager,
52
        ObjectPersisterInterface $objectPersister,
53
        \Exception $exception,
54
        array $objects,
55
        array $options
56
    ) {
57
        $this->pager = $pager;
58
        $this->objectPersister = $objectPersister;
59
        $this->exception = $exception;
60
        $this->options = $options;
61
        $this->objects = $objects;
62
    }
63
64
    public function getPager(): PagerInterface
65
    {