Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
35 | 31 | public function __construct( |
|
36 | \ReflectionClass $class, |
||
37 | SetterMethods $setterMethods, |
||
38 | Name $constructorName = null |
||
39 | ) { |
||
40 | 31 | $constructorName = $constructorName ?: new Name(Name::ANY); |
|
41 | 31 | $this->class = $class->name; |
|
42 | 31 | $constructor = $class->getConstructor(); |
|
43 | 31 | if ($constructor) { |
|
44 | 20 | $this->arguments = new Arguments($constructor, $constructorName); |
|
45 | } |
||
46 | 31 | $this->setterMethods = $setterMethods; |
|
47 | 31 | } |
|
48 | |||
88 |