MatchNone   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A compile() 0 3 1
1
<?php
2
/*
3
 * This file is part of PHPinnacle/Elastics.
4
 *
5
 * (c) PHPinnacle Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace PHPinnacle\Elastics\Query;
14
15
use PHPinnacle\Elastics\Query;
16
17
class MatchNone implements Query
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22 2
    public function name(): string
23
    {
24 2
        return 'match_none';
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 2
    public function compile(): array
31
    {
32 2
        return [];
33
    }
34
}
35