Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function __construct( |
||
32 | string $profile, |
||
33 | bool $watch, |
||
34 | ConfigFilter $filter, |
||
35 | string $outputMode = DumpDocs::MODE_HTML, |
||
36 | int $port = 3000 |
||
37 | ) { |
||
38 | if (! is_file($profile)) { |
||
39 | throw new AlpsFileNotReadableException($profile); |
||
40 | } |
||
41 | |||
42 | $this->profile = $profile; |
||
43 | $this->watch = $watch; |
||
44 | $this->filter = $filter; |
||
45 | $this->hasTag = $filter->and || $filter->or; |
||
46 | $this->outputMode = $outputMode; |
||
47 | $this->port = $port; |
||
48 | } |
||
50 |