Passed
Push — master ( c93c78...d9ab06 )
by Anton
04:33 queued 02:57
created

Embedded   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInverse() 0 3 1
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license   MIT
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
declare(strict_types=1);
9
10
namespace Cycle\Annotated\Annotation\Relation;
11
12
use Doctrine\Common\Annotations\Annotation\Attribute;
13
use Doctrine\Common\Annotations\Annotation\Attributes;
14
15
/**
16
 * @Annotation
17
 * @Target("PROPERTY")
18
 * @Attributes({
19
 *      @Attribute("target", type="string", required=true),
20
 *      @Attribute("load", type="string"),
21
 * })
22
 */
23
final class Embedded extends Relation
24
{
25
    protected const TYPE = 'embedded';
26
27
    /**
28
     * @return Inverse|null
29
     */
30
    public function getInverse(): ?Inverse
31
    {
32
        return null;
33
    }
34
}