Completed
Push — master ( 65ba07...f0ec2b )
by André
104:16 queued 82:47
created

FieldRangeParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
1
<?php
2
3
/**
4
 * File containing the facet builder FieldRange parser class.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\REST\Server\Input\Parser\FacetBuilder;
10
11
use eZ\Publish\Core\REST\Common\Input\BaseParser;
12
use eZ\Publish\Core\REST\Common\Input\ParsingDispatcher;
13
use eZ\Publish\Core\REST\Common\Exceptions;
14
15
/**
16
 * Parser for FieldRange facet builder.
17
 */
18
class FieldRangeParser extends BaseParser
19
{
20
    /**
21
     * Parses input structure to a FacetBuilder object.
22
     *
23
     * @param array $data
24
     * @param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher
25
     *
26
     * @throws \eZ\Publish\Core\REST\Common\Exceptions\Parser
27
     *
28
     * @return \eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder\FieldRangeFacetBuilder
29
     */
30
    public function parse(array $data, ParsingDispatcher $parsingDispatcher)
31
    {
32
        throw new Exceptions\Parser('<FieldRange> is not supported yet');
33
    }
34
}
35