Passed
Pull Request — master (#1317)
by
unknown
21:24
created

OptionsFacet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionBased\Options;
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
 * Value object that represent a options facet.
22
 *
23
 * @author Frans Saris <[email protected]>
24
 * @author Timo Hund <[email protected]>
25
 * @package ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\OptionsFacet
26
 */
27
class OptionsFacet extends AbstractOptionsFacet
28
{
29
    const TYPE_OPTIONS = 'options';
30
31
    /**
32
     * String
33
     * @var string
34
     */
35
    protected static $type = self::TYPE_OPTIONS;
36
37
    /**
38
     * OptionsFacet constructor
39
     *
40
     * @param SearchResultSet $resultSet
41
     * @param string $name
42
     * @param string $field
43
     * @param string $label
44
     * @param array $configuration Facet configuration passed from typoscript
45
     */
46 50
    public function __construct(SearchResultSet $resultSet, $name, $field, $label = '', array $configuration = [])
47
    {
48 50
        parent::__construct($resultSet, $name, $field, $label, $configuration);
49 50
    }
50
}
51