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

HasOneProxy::value()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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