1 | <?php |
||
9 | trait DiffableEntityTrait /* implements DiffableInterface */ |
||
10 | { |
||
11 | /** |
||
12 | * @see \Equip\Data\EntityInterface::withData() |
||
13 | * |
||
14 | * @param array $data |
||
15 | * |
||
16 | * @return static |
||
17 | */ |
||
18 | abstract public function withData(array $data); |
||
19 | |||
20 | /** |
||
21 | * @see \Equip\Data\ArraySerializableInterface::toArray() |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | abstract public function toArray(); |
||
26 | |||
27 | /** |
||
28 | * @param array $values |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | 1 | public function diff(array $values) |
|
37 | } |
||
38 |