Passed
Push — master ( 01c6a8...5a4258 )
by Jesse
09:00
created

Check::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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