| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class CreateFromInstanceCreator implements ObjectConstructor |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * User class that instantiates a class in a custom way |
||
| 26 | * |
||
| 27 | * @var InstanceCreator |
||
| 28 | */ |
||
| 29 | private $instanceCreator; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Php Type instance |
||
| 33 | * |
||
| 34 | * @var TypeToken |
||
| 35 | */ |
||
| 36 | private $type; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor |
||
| 40 | * |
||
| 41 | * @param InstanceCreator $instanceCreator |
||
| 42 | * @param TypeToken $type |
||
| 43 | */ |
||
| 44 | 1 | public function __construct(InstanceCreator $instanceCreator, TypeToken $type) |
|
| 48 | 1 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Returns the instantiated object |
||
| 52 | * |
||
| 53 | * @return object |
||
| 54 | */ |
||
| 55 | 1 | public function construct() |
|
| 60 |