This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
19
{
20
/**
21
* @var PagerInterface
22
*/
23
private $pager;
24
25
/**
26
* @var ObjectPersisterInterface
27
*/
28
private $objectPersister;
29
30
/**
31
* @var array
32
*/
33
private $options;
34
35
18
public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $options)
36
{
37
18
$this->pager = $pager;
38
18
$this->objectPersister = $objectPersister;
39
18
$this->options = $options;
40
18
}
41
42
13
public function getPager(): PagerInterface
43
{
44
13
return $this->pager;
45
}
46
47
1
public function setPager(PagerInterface $pager)
48
{
49
1
$this->pager = $pager;
50
1
}
51
52
13
public function getOptions(): array
53
{
54
13
return $this->options;
55
}
56
57
1
public function setOptions(array $options)
58
{
59
1
$this->options = $options;
60
1
}
61
62
3
public function getObjectPersister(): ObjectPersisterInterface
63
{
64
3
return $this->objectPersister;
65
}
66
67
1
public function setObjectPersister(ObjectPersisterInterface $objectPersister)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.