Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait DomDocumentTrait |
||
19 | { |
||
20 | /** |
||
21 | * The DOMDocument object which is being used to parse the content. |
||
22 | * |
||
23 | * @var DOMDocument |
||
24 | */ |
||
25 | protected $domDocument; |
||
|
|||
26 | |||
27 | /** |
||
28 | * Gets the DOMDocument object which is being used to parse the content. |
||
29 | */ |
||
30 | 1 | public function getDomDocument(): DOMDocument |
|
31 | { |
||
32 | 1 | return $this->domDocument; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Gets the default (preferred) configuration for DOMDocument. |
||
37 | */ |
||
38 | 1 | public function getDefaultDomConfig(DOMDocument $domDocument): DOMDocument |
|
49 | } |
||
50 | } |
||
51 |