Passed
Pull Request — release-11.5.x (#3206)
by Michael
40:59 queued 01:38
created

AbstractComponent::setSearchConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the TYPO3 CMS project.
5
 *
6
 * It is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License, either version 2
8
 * of the License, or any later version.
9
 *
10
 * For the full copyright and license information, please read the
11
 * LICENSE.txt file that was distributed with this source code.
12
 *
13
 * The TYPO3 project - inspiring people to share!
14
 */
15
16
namespace ApacheSolrForTypo3\Solr\Search;
17
18
/**
19
 * Abstract search component
20
 *
21
 * @author Ingo Renner <[email protected]>
22
 */
23
abstract class AbstractComponent implements SearchComponent
24
{
25
26
    /**
27
     * Search configuration - plugin.tx_solr.search
28
     *
29
     * @var array
30
     */
31
    protected $searchConfiguration = [];
32
33
    /**
34
     * Sets the plugin's search configuration.
35
     *
36
     * @param array $configuration Configuration
37
     */
38 43
    public function setSearchConfiguration(array $configuration)
39
    {
40 43
        $this->searchConfiguration = $configuration;
41
    }
42
}
43