Completed
Push — master ( 7d9b81...ed1eff )
by Adam
09:05
created

CDataSection::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace BestServedCold\PhalueObjects\Format\Xml\Node;
4
5
class CDataSection implements NodeInterface
6
{
7
    private $key = '@cdata';
8
    
9
    public static function run($node)
10
    {
11
        return trim($node->textContent);
12
    }
13
14
    public function getKey()
15
    {
16
        return $this->key;
17
    }
18
}
19