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

Check::thatIt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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