Passed
Pull Request — task/3376-TYPO3_12_compatibili... (#3452)
by
unknown
45:45 queued 21s
created

FormEvent::getSearch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
namespace ApacheSolrForTypo3\Solr\Event\Search;
18
19
use ApacheSolrForTypo3\Solr\Search;
20
21
class FormEvent
22
{
23
    private Search $search;
24
    private array $additionalFilters;
25
    private string $pluginNamespace;
26
27
    /**
28
     * @param Search $search
29
     * @param array $additionalFilters
30
     * @param string $pluginNamespace
31
     */
32
    public function __construct(Search $search, array $additionalFilters, string $pluginNamespace)
33
    {
34
        $this->search = $search;
35
        $this->additionalFilters = $additionalFilters;
36
        $this->pluginNamespace = $pluginNamespace;
37
    }
38
39
    /**
40
     * @return Search
41
     */
42
    public function getSearch(): Search
43
    {
44
        return $this->search;
45
    }
46
47
    /**
48
     * @return array
49
     */
50
    public function getAdditionalFilters(): array
51
    {
52
        return $this->additionalFilters;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getPluginNamespace(): string
59
    {
60
        return $this->pluginNamespace;
61
    }
62
}
63