Completed
Push — master ( ca1131...42ef77 )
by Woody
03:33
created

StructureWithDataAlias   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
withValues() 0 1 ?
A withData() 0 4 1
1
<?php
2
3
namespace Equip\Compatibility;
4
5
/**
6
 * @since 1.3.0
7
 */
8
trait StructureWithDataAlias
9
{
10
    abstract public function withValues(array $values);
11
12
    /**
13
     * Backwards compatability with Destrukt.
14
     *
15
     * @deprecated since 1.3.0, to be removed in 2.0.0
16
     *
17
     * @param array $data
18
     *
19
     * @return static
20
     */
21
    public function withData(array $data)
22
    {
23
        return $this->withValues($data);
24
    }
25
}
26