Attribute   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
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 fromArray() 0 4 1
1
<?php
2
3
namespace BestServedCold\PhalueObjects\VOString;
4
5
use BestServedCold\PhalueObjects\VOArray\Map\Attribute as VOArrayAttribute;
6
use BestServedCold\PhalueObjects\VOString;
7
8
/**
9
 * Class Attribute
10
 *
11
 * @package BestServedCold\PhalueObjects\String
12
 */
13
class Attribute extends VOString
14
{
15
    /**
16
     * @param  array  $array
17
     * @return Attribute
18
     */
19 1
    public static function fromArray(array $array)
20
    {
21 1
        return new static(VOArrayAttribute::fromArray($array)->implode(' '));
22
    }
23
}
24