Total Complexity | 5 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Doubler |
||
14 | { |
||
15 | /** |
||
16 | * @var Extractor |
||
17 | */ |
||
18 | private $extractor; |
||
19 | |||
20 | /** |
||
21 | * @var Injector |
||
22 | */ |
||
23 | private $injector; |
||
24 | |||
25 | /** |
||
26 | * @var callable |
||
27 | */ |
||
28 | private $doubleFactory; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $doubleType; |
||
34 | |||
35 | 18 | public function __construct(Extractor $extractor, Injector $injector, callable $doubleFactory, string $doubleType) |
|
36 | { |
||
37 | 18 | $this->extractor = $extractor; |
|
38 | 18 | $this->injector = $injector; |
|
39 | 18 | $this->doubleFactory = $doubleFactory; |
|
40 | 18 | $this->doubleType = $doubleType; |
|
41 | } |
||
42 | |||
43 | 18 | public function createDoubles(/*object */$testCase) |
|
47 | } |
||
48 | } |
||
49 | |||
50 | 18 | private function createTestDouble(Property $property) |
|
54 | 18 | })); |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param object $testCase |
||
59 | * |
||
60 | * @return Property[] |
||
61 | */ |
||
62 | 18 | private function getTestDoubleProperties(/*object */$testCase): array |
|
73 |