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

Attribute   A

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\VOString;
6
7
use BestServedCold\PhalueObjects\VOArray\Map\Attribute as VOArrayAttribute;
8
9
/**
10
 * Class Attribute
11
 *
12
 * @package BestServedCold\PhalueObjects\String
13
 */
14
class Attribute extends VOString
15
{
16
    /**
17
     * @param  array  $array
18
     * @return string
0 ignored issues
show
Documentation introduced by
Should the return type not be Attribute?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
19
     */
20 1
    public static function fromArray(array $array)
21
    {
22 1
        return new static(VOArrayAttribute::fromArray($array)->implode(' '));
23
    }
24
}
25