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

CDataSection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
A getKey() 0 4 1
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