Completed
Pull Request — master (#1734)
by
unknown
05:52
created

PostMappingBuilderEvent::getIndexConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <https://friendsofsymfony.github.com/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FOS\ElasticaBundle\Event;
13
14
use FOS\ElasticaBundle\Configuration\IndexConfig;
15
use Symfony\Contracts\EventDispatcher\Event;
16
17
class PostMappingBuilderEvent extends Event
18
{
19
    /**
20
     * @var IndexConfig
21
     */
22
    private $indexConfig;
23
24
    /**
25
     * @var array
26
     */
27
    private $mapping;
28
29
    public function __construct(IndexConfig $indexConfig, array $mapping)
30
    {
31
        $this->indexConfig = $indexConfig;
32
        $this->mapping = $mapping;
33
    }
34
35
    public function getIndexConfig(): IndexConfig
36
    {
37
        return $this->indexConfig;
38
    }
39
40
    public function getMapping(): array
41
    {
42
        return $this->mapping;
43
    }
44
}
45