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

SelfSupport::getSibling()   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
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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 SelfSupport extends AbstractModel
14
{
15
    private $sibling;
16
17
    public function getSibling(): ?self
18
    {
19
        return $this->sibling;
20
    }
21
22
    public function setSibling(self $sibling): void
23
    {
24
        $this->sibling = $sibling;
25
    }
26
27
    /**
28
     * @return null|self
29
     */
30
    public function getSiblingViaPhpDoc()
31
    {
32
        return $this->sibling;
33
    }
34
35
    /**
36
     * @param self $sibling
37
     */
38
    public function setSiblingViaPhpDoc($sibling): void
39
    {
40
        $this->sibling = $sibling;
41
    }
42
}
43