Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
DefaultContentProvider
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getHTML
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MobileFrontend\ContentProviders;
4
5class DefaultContentProvider implements IContentProvider {
6
7    /**
8     * @var string
9     */
10    private $html;
11
12    /**
13     * @param string $html HTML relating to content
14     */
15    public function __construct( $html ) {
16        $this->html = $html;
17    }
18
19    /**
20     * @inheritDoc
21     */
22    public function getHTML() {
23        return $this->html;
24    }
25}