Criteria::and()   A
last analyzed

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
2
declare(strict_types=1);
3
4
namespace BrenoRoosevelt\PhpAttributes\Specification;
5
6
use BrenoRoosevelt\PhpAttributes\Specification;
7
8
class Criteria
9
{
10
    public static function and(Specification ...$specifications): Specification
11
    {
12
        return new AllOf(...$specifications);
13
    }
14
15
    public static function or(Specification ...$specifications): Specification
16
    {
17
        return new AnyOf(...$specifications);
18
    }
19
20
    public static function not(Specification ...$specifications): Specification
21
    {
22
        return new Not(...$specifications);
23
    }
24
}
25