Passed
Push — master ( 40a1d9...4db4c6 )
by Adrien
03:40
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
    /**
18
     * @return null|self
19
     */
20
    public function getSibling(): ?self
21
    {
22
        return $this->sibling;
23
    }
24
25
    /**
26
     * @param self $sibling
27
     */
28
    public function setSibling(self $sibling): void
29
    {
30
        $this->sibling = $sibling;
31
    }
32
}
33