Completed
Push — develop ( b74491...9e8dd2 )
by
unknown
12:13
created

PostConvertToDocumentEvent::getManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Sulu\Bundle\ArticleBundle\Elasticsearch;
13
14
use ONGR\ElasticsearchBundle\Service\Manager;
15
use Symfony\Component\EventDispatcher\Event;
16
17
/**
18
 * Event args for "es.post_convert_to_document".
19
 */
20
class PostConvertToDocumentEvent extends Event
21
{
22
    /**
23
     * @var array
24
     */
25
    private $rawData;
26
27
    /**
28
     * @var object
29
     */
30
    private $document;
31
32
    /**
33
     * @var Manager
34
     */
35
    private $manager;
36
37
    public function __construct(array $rawData, $document, Manager $manager)
38
    {
39
        $this->rawData = $rawData;
40
        $this->document = $document;
41
        $this->manager = $manager;
42
    }
43
44
    /**
45
     * Returns rawData.
46
     *
47
     * @return array
48
     */
49
    public function getRawData()
50
    {
51
        return $this->rawData;
52
    }
53
54
    /**
55
     * Returns document.
56
     *
57
     * @return object
58
     */
59
    public function getDocument()
60
    {
61
        return $this->document;
62
    }
63
64
    /**
65
     * Returns manager.
66
     *
67
     * @return Manager
68
     */
69
    public function getManager()
70
    {
71
        return $this->manager;
72
    }
73
}
74