Passed
Branch master (bbfb46)
by Jan
22:41 queued 14:44
created

TrueRule   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getConstraints() 0 3 1
A getName() 0 3 1
A match() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Test\Cart\Common;
4
5
use Shopware\Core\Framework\Rule\Rule;
6
use Shopware\Core\Framework\Rule\RuleScope;
7
8
class TrueRule extends Rule
9
{
10
    public function match(RuleScope $matchContext): bool
11
    {
12
        return true;
13
    }
14
15
    public function getConstraints(): array
16
    {
17
        return [];
18
    }
19
20
    public function getName(): string
21
    {
22
        return 'true';
23
    }
24
}
25