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

FieldRangeParser::parse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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