Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class RawDocProvider implements DocProviderInterface |
||
11 | { |
||
12 | /** @var HttpServerDocCreator */ |
||
13 | private $httpServerDocCreator; |
||
14 | /** @var HttpServerDocNormalizer */ |
||
15 | private $serverDocNormalizer; |
||
16 | |||
17 | const SUPPORTED_FILENAME = 'raw.json'; |
||
18 | |||
19 | /** |
||
20 | * @param HttpServerDocCreator $HttpServerDocCreator |
||
21 | * @param HttpServerDocNormalizer $serverDocNormalizer |
||
22 | */ |
||
23 | 2 | public function __construct( |
|
24 | HttpServerDocCreator $HttpServerDocCreator, |
||
25 | HttpServerDocNormalizer $serverDocNormalizer |
||
26 | ) { |
||
27 | 2 | $this->httpServerDocCreator = $HttpServerDocCreator; |
|
28 | 2 | $this->serverDocNormalizer = $serverDocNormalizer; |
|
29 | 2 | } |
|
30 | |||
31 | /** |
||
32 | * @param string|null $host |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 1 | public function getDoc($host = null) : array |
|
40 | ); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function supports($filename, $host = null) : bool |
|
51 |