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

TrueRule   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConstraints() 0 3 1
A match() 0 3 1
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 TrueRule extends Rule
9
{
10
    final public const RULE_NAME = 'true';
11
12
    public function match(RuleScope $matchContext): bool
13
    {
14
        return true;
15
    }
16
17
    public function getConstraints(): array
18
    {
19
        return [];
20
    }
21
}
22