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

HasBackReference::__construct()   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
eloc 1
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Hydration\Mapping\Property\Relationship;
5
6
use Stratadox\Hydration\Mapping\Relation\ObservedRelationMapping;
7
8
/**
9
 * Maps a back-reference in a bidirectional relationship.
10
 *
11
 * @author Stratadox
12
 */
13
final class HasBackReference
14
{
15
    public static function inProperty(string $name): ObservedRelationMapping
16
    {
17
        return ObservedRelationMapping::inProperty($name);
18
    }
19
}
20