Completed
Push — master ( fdf780...2ff9ad )
by Auke
12:19 queued 03:15
created

RawXML::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
    public function __construct($contents) 
22
    {
23
        $this->contents = $contents;
24
    }
25
26
    public function __toString()
27
    {
28
        return $this->contents;
29
    }
30
}