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

TrueRule::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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