Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class SourceWatcher |
||
6 | { |
||
7 | private StepLoader $stepLoader; |
||
8 | |||
9 | public function __construct () |
||
10 | { |
||
11 | $this->stepLoader = new StepLoader(); |
||
12 | } |
||
13 | |||
14 | public function extract ( string $extractorName, $input, array $options = [] ) : SourceWatcher |
||
15 | { |
||
16 | /* |
||
17 | * Since PHP 5.5, the class keyword is also used for class name resolution. |
||
18 | * You can get a string containing the fully qualified name of the ClassName class by using ClassName::class. |
||
19 | * This is particularly useful with namespaced classes. |
||
20 | * |
||
21 | * Coco\SourceWatcher\Core\Extractor, $extractorName |
||
22 | */ |
||
23 | |||
24 | $extractor = $this->stepLoader->step( Extractor::class, $extractorName ); |
||
25 | $extractor->setInput( $input ); |
||
|
|||
26 | $extractor->options( $options ); |
||
27 | |||
28 | return $this; |
||
29 | } |
||
30 | |||
31 | public function transform () : SourceWatcher |
||
32 | { |
||
33 | |||
34 | } |
||
35 | |||
36 | public function load () : SourceWatcher |
||
38 | |||
39 | } |
||
40 | } |
||
41 |