Completed
Push — master ( e504c7...3fd00a )
by Simonas
17:33
created

PreCreateManagerEvent::getIndexSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[email protected]>
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 ONGR\ElasticsearchBundle\Event;
13
14
use Elasticsearch\ClientBuilder;
15
use Symfony\Component\EventDispatcher\Event;
16
17
class PreCreateManagerEvent extends Event
18
{
19
    /**
20
     * @var ClientBuilder
21
     */
22
    private $client;
23
24
    /**
25
     * @var array
26
     */
27
    private $indexSettings;
28
29
    /**
30
     * CreateManagerEvent constructor.
31
     *
32
     * @param PreClientBuilder $client
33
     * @param $indexSettings array
34
     */
35
    public function __construct(ClientBuilder $client, &$indexSettings)
36
    {
37
        $this->client = $client;
38
        $this->indexSettings = $indexSettings;
39
    }
40
41
    /**
42
     * @return ClientBuilder
43
     */
44
    public function getClient()
45
    {
46
        return $this->client;
47
    }
48
49
    /**
50
     * @param ClientBuilder $client
51
     */
52
    public function setClient($client)
53
    {
54
        $this->client = $client;
55
    }
56
57
    /**
58
     * @return array
59
     */
60
    public function getIndexSettings()
61
    {
62
        return $this->indexSettings;
63
    }
64
65
    /**
66
     * @param array $indexSettings
67
     */
68
    public function setIndexSettings($indexSettings)
69
    {
70
        $this->indexSettings = $indexSettings;
71
    }
72
}
73