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

ClosureResult::inProperty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Hydration\Mapping\Property\Dynamic;
5
6
use Closure;
7
use Stratadox\Hydration\Mapping\ClosureMapping;
8
use Stratadox\HydrationMapping\Mapping;
9
10
/** @deprecated */
11
final class ClosureResult
12
{
13
    /** @deprecated */
14
    public static function inProperty(string $name, Closure $function): Mapping
15
    {
16
        return ClosureMapping::inProperty($name, $function);
17
    }
18
}
19