These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace FOS\ElasticaBundle\Persister\Event; |
||
3 | |||
4 | use FOS\ElasticaBundle\Persister\ObjectPersisterInterface; |
||
5 | use FOS\ElasticaBundle\Provider\PagerInterface; |
||
6 | use Symfony\Component\EventDispatcher\Event; |
||
7 | |||
8 | View Code Duplication | final class PrePersistEvent extends Event implements PersistEvent |
|
0 ignored issues
–
show
|
|||
9 | { |
||
10 | /** |
||
11 | * @var PagerInterface |
||
12 | */ |
||
13 | private $pager; |
||
14 | |||
15 | /** |
||
16 | * @var ObjectPersisterInterface |
||
17 | */ |
||
18 | private $objectPersister; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $options; |
||
24 | |||
25 | 17 | public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $options) |
|
26 | { |
||
27 | 17 | $this->pager = $pager; |
|
28 | 17 | $this->objectPersister = $objectPersister; |
|
29 | 17 | $this->options = $options; |
|
30 | 17 | } |
|
31 | |||
32 | /** |
||
33 | * @return PagerInterface |
||
34 | */ |
||
35 | 12 | public function getPager() |
|
36 | { |
||
37 | 12 | return $this->pager; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param PagerInterface $pager |
||
42 | */ |
||
43 | 1 | public function setPager($pager) |
|
44 | { |
||
45 | 1 | $this->pager = $pager; |
|
46 | 1 | } |
|
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | 12 | public function getOptions() |
|
52 | { |
||
53 | 12 | return $this->options; |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param array $options |
||
58 | */ |
||
59 | 1 | public function setOptions(array $options) |
|
60 | { |
||
61 | 1 | $this->options = $options; |
|
62 | 1 | } |
|
63 | |||
64 | /** |
||
65 | * @return ObjectPersisterInterface |
||
66 | */ |
||
67 | 3 | public function getObjectPersister() |
|
68 | { |
||
69 | 3 | return $this->objectPersister; |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * @param ObjectPersisterInterface $objectPersister |
||
74 | */ |
||
75 | 1 | public function setObjectPersister(ObjectPersisterInterface $objectPersister) |
|
76 | { |
||
77 | 1 | $this->objectPersister = $objectPersister; |
|
78 | 1 | } |
|
79 | } |
||
80 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.