Completed
Pull Request — master (#21)
by
unknown
01:39
created

Cdata::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Bukashk0zzz\YmlGenerator;
4
5
/**
6
 * Represents a value that should be written to XML as CDATA
7
 * @author zyura (https://github.com/zyura)
8
 */
9
class Cdata {
10
    /**
11
     * @var string
12
     */
13
    private $value;
14
15
    /**
16
     * @param string $value
17
     */
18
    public function __construct($value)
19
    {
20
        $this->value = $value;
21
    }
22
23
    public function __toString()
24
    {
25
        return $this->value;
26
    }
27
}