Completed
Pull Request — 5.6 (#2830)
by Jeroen
14:14
created

NodeSearchBundle/Event/IndexNodeEvent.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\NodeSearchBundle\Event;
4
5
use Kunstmaan\NodeBundle\Entity\HasNodeInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
class IndexNodeEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

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.

Loading history...
9
{
10
    const EVENT_INDEX_NODE = 'kunstmaan_node_search.onIndexNode';
11
12
    /**
13
     * @var array
14
     */
15
    public $doc;
16
17
    /**
18
     * @var HasNodeInterface
19
     */
20
    private $page;
21
22 1
    public function __construct(HasNodeInterface $page, array $doc)
23
    {
24 1
        $this->doc = $doc;
25 1
        $this->page = $page;
26 1
    }
27
28
    /**
29
     * @return HasNodeInterface
30
     */
31 1
    public function getPage()
32
    {
33 1
        return $this->page;
34
    }
35
}
36