DiffableTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A diff() 0 4 1
1
<?php
2
3
namespace Equip\Data\Traits;
4
5
use Equip\Data\DiffableInterface;
6
7
trait DiffableTrait
8
{
9
    /**
10
     * Get the difference between an object and some values
11
     *
12
     * @param DiffableInterface $object
13
     * @param array $values
14
     *
15
     * @return array
16
     */
17 1
    private function diff(DiffableInterface $object, array $values)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
18
    {
19 1
        return $object->diff($values);
20
    }
21
}
22