Completed
Push — master ( d154ad...604248 )
by Valentin
05:10
created

Declaration::extractClassName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Declaration;
5
6
class Declaration
7
{
8
    /** @var Proxy\ClassInterface */
9
    public $class;
10
11
    /** @var Proxy\ClassInterface */
12
    public $parent;
13
14
    public function __construct(\ReflectionClass $parent, string $class)
15
    {
16
        $this->parent = new Proxy\ReflectionClass_($parent);
17
        $this->class = new Proxy\Class_($class, $this->parent);
18
    }
19
}