Completed
Push — master ( 8c9478...0f7d17 )
by Adam
02:25
created

Xml   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 4 1
1
<?php
2
3
namespace BestServedCold\PhalueObjects\Format;
4
5
use BestServedCold\PhalueObjects\Format;
6
use Sabre\Xml\Service;
7
8
/**
9
 * Class Xml
10
 * @package BestServedCold\PhalueObjects\Format
11
 */
12
class Xml extends Format
13
{
14
    /**
15
     * @return array
16
     */
17 1
    public function toArray()
18
    {
19 1
        return (array) (new Service())->parse($this->getValue());
20
    }
21
}
22