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

HasBackReference::value()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
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\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