RawXML   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Ariadne Component Library.
4
 *
5
 * (c) Muze <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace arc\xml;
12
13
/**
14
 * This is a container for raw xml content, which will not get escaped 
15
 * when included by the \arc\xml\Writer or NodeList.
16
 * @property string $contents
17
 */
18
class RawXML {
19
    public $contents = '';
20
21 6
    public function __construct($contents) 
22
    {
23 6
        $this->contents = $contents;
24 6
    }
25
26 6
    public function __toString()
27
    {
28 6
        return (string) $this->contents;
29
    }
30
}