Completed
Push — master ( 6afe7c...34b094 )
by Woody
59:49 queued 43:17
created

DiffableTrait::diff()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 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