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

HasOneProxy::__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\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