Passed
Push — master ( 18ff69...81bea8 )
by Adrien
02:23
created

NamespaceSupport   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOtherModelViaPhpDoc() 0 3 1
A getOtherModelViaPhpDoc() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLTests\Doctrine\Blog\Model\Special;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use GraphQLTests\Doctrine\Blog\Model\AbstractModel;
9
10
/**
11
 * @ORM\Entity
12
 */
13
final class NamespaceSupport extends AbstractModel
14
{
15
    private $value;
16
17
    /**
18
     * @return SelfSupport
19
     */
20
    public function getOtherModelViaPhpDoc()
21
    {
22
        return new SelfSupport();
23
    }
24
25
    /**
26
     * @param SelfSupport $value
27
     */
28
    public function setOtherModelViaPhpDoc($value): void
29
    {
30
        $this->value = $value;
31
    }
32
}
33