Passed
Push — master ( 40a1d9...4db4c6 )
by Adrien
03:40
created

SelfSupport   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
dl 0
loc 18
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSibling() 0 3 1
A setSibling() 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 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