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