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

ClosureResult   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A inProperty() 0 3 1
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