Completed
Push — master ( 390c8c...8b8bac )
by Бабичев
02:28
created

CData   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 24
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Bavix\XMLReader;
4
5
class CData
6
{
7
8
    /**
9
     * @var string 
10
     */
11
    protected $raw;
12
13
    /**
14
     * Raw constructor.
15
     *
16
     * @param string $raw
17
     */
18
    public function __construct(string $raw)
19
    {
20
        $this->raw = $raw;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function __toString()
27
    {
28
        return '<![CDATA[ ' . $this->raw . ' ]]>';
29
    }
30
31
}
32