Passed
Push — master ( f1d34f...924412 )
by Jesse
02:05
created

Check   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 2
c 3
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A thatIt() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Hydration\Mapping\Property;
5
6
use Stratadox\Hydration\Mapping\Composite\ConstrainedMapping;
7
use Stratadox\HydrationMapping\Mapping;
8
use Stratadox\Specification\Contract\Satisfiable;
9
10
/** @deprecated */
11
final class Check
12
{
13
    /** @deprecated */
14
    public static function thatIt(
15
        Satisfiable $constraint,
16
        Mapping $mapping
17
    ): Mapping {
18
        return new ConstrainedMapping($constraint, $mapping);
19
    }
20
}
21