Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | abstract class AbstractCreator implements Creator |
||
12 | { |
||
13 | /** @var string */ |
||
14 | protected $fqcn; |
||
15 | |||
16 | /** |
||
17 | * WithoutConstructor constructor. |
||
18 | * |
||
19 | * @param \ReflectionClass $class |
||
20 | */ |
||
21 | 18 | public function __construct(\ReflectionClass $class) |
|
22 | { |
||
23 | // ReflectionClass cannot be serialized (so we only store the FQCN) |
||
24 | 18 | $this->fqcn = $class->name; |
|
25 | 18 | } |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | 3 | public function getFqcn() |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return \ReflectionClass |
||
37 | */ |
||
38 | 18 | public function getClass() |
|
45 |