Passed
Push — trunk ( 8abfd3...f40c58 )
by Christian
11:23 queued 15s
created

FalseRule::match()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Test\Stub\Rule;
4
5
use Shopware\Core\Framework\Rule\Rule;
6
use Shopware\Core\Framework\Rule\RuleScope;
7
8
class FalseRule extends Rule
9
{
10
    final public const RULE_NAME = 'false';
11
12
    public function match(RuleScope $matchContext): bool
13
    {
14
        return false;
15
    }
16
17
    public function getConstraints(): array
18
    {
19
        return [];
20
    }
21
}
22