Conditions | 5 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function hasChanges($related, $original): bool |
||
13 | { |
||
14 | if ($related instanceof PromiseInterface && $related->__loaded()) { |
||
15 | return true; |
||
16 | } |
||
17 | |||
18 | if (null === $related && null === $original) { |
||
19 | return false; |
||
20 | } |
||
21 | |||
22 | return !$this->sameReference($related, $original); |
||
23 | } |
||
34 |