Completed
Push — master ( a95893...a4d2df )
by Timo
13:46 queued 13:38
created

QueryGroupFacet::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 5
crap 1
1
<?php
2
namespace ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionBased\QueryGroup;
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
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionBased\AbstractOptionsFacet;
18
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
19
20
/**
21
 * Class QueryGroupFacet
22
 *
23
 * @author Frans Saris <[email protected]>
24
 * @author Timo Hund <[email protected]>
25
 * @package ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\QueryGroupFacet
26
 */
27
class QueryGroupFacet extends AbstractOptionsFacet
28
{
29
    const TYPE_QUERY_GROUP = 'queryGroup';
30
31
    /**
32
     * String
33
     * @var string
34
     */
35
    protected static $type = self::TYPE_QUERY_GROUP;
36
37
    /**
38
     * @var OptionCollection
39
     */
40
    protected $options;
41
42
    /**
43
     * OptionsFacet constructor
44
     *
45
     * @param SearchResultSet $resultSet
46
     * @param string $name
47
     * @param string $field
48
     * @param string $label
49
     * @param array $configuration Facet configuration passed from typoscript
50
     */
51 32
    public function __construct(SearchResultSet $resultSet, $name, $field, $label = '', array $configuration = [])
52
    {
53 32
        parent::__construct($resultSet, $name, $field, $label, $configuration);
54 32
    }
55
}
56