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 | final class PostPersistEvent 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 | 14 | public function __construct(PagerInterface $pager, ObjectPersisterInterface $objectPersister, array $options) |
|
26 | { |
||
27 | 14 | $this->pager = $pager; |
|
28 | 14 | $this->objectPersister = $objectPersister; |
|
29 | 14 | $this->options = $options; |
|
30 | 14 | } |
|
31 | |||
32 | /** |
||
33 | * @return PagerInterface |
||
34 | */ |
||
35 | 2 | public function getPager() |
|
36 | { |
||
37 | 2 | return $this->pager; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 2 | public function getOptions() |
|
44 | { |
||
45 | 2 | return $this->options; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return ObjectPersisterInterface |
||
50 | */ |
||
51 | 2 | public function getObjectPersister() |
|
52 | { |
||
53 | 2 | return $this->objectPersister; |
|
54 | } |
||
55 | } |
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.