Failed Conditions
Push — master ( 9327e7...7f99bf )
by Vladimir
04:21
created

Person   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Tests\Executor\TestClasses;
6
7
class Person
8
{
9
    /** @var string */
10
    public $name;
11
12
    /** @var (Dog|Cat)[]|null */
13
    public $pets;
14
15
    /** @var (Dog|Cat|Person)[]|null */
16
    public $friends;
17
18
    /**
19
     * @param (Cat|Dog)[]|null        $pets
20
     * @param (Cat|Dog|Person)[]|null $friends
21
     */
22
    public function __construct(string $name, $pets = null, $friends = null)
23
    {
24
        $this->name    = $name;
25
        $this->pets    = $pets;
26
        $this->friends = $friends;
27
    }
28
}
29