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