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

NamespaceSupport::setOtherModelViaPhpDoc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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