Passed
Pull Request — master (#43)
by David
01:47
created

ClassB::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace TheCodingMachine\GraphQL\Controllers\Fixtures\Interfaces;
4
5
6
class ClassB extends ClassA
7
{
8
    /**
9
     * @var string
10
     */
11
    private $bar;
12
13
    public function __construct(string $foo, string $bar)
14
    {
15
        parent::__construct($foo);
16
17
        $this->bar = $bar;
18
    }
19
20
    public function getBar(): string
21
    {
22
        return $this->bar;
23
    }
24
}
25