Completed
Push — master ( ad2be9...09494e )
by Woody
32:00 queued 16:04
created

DiffableTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A diff() 0 4 1
1
<?php
2
3
namespace Spark\Data\Traits;
4
5
use Spark\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
    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
        return $object->diff($values);
20
    }
21
}
22