| Conditions | 4 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 2 | public function getChangedProperties($properties) |
|
| 31 | { |
||
| 32 | 2 | $changed = []; |
|
| 33 | 2 | foreach ($properties as $property) { |
|
| 34 | 2 | $originalValue = isset($this->_originalValues[$property]) ? $this->_originalValues[$property] : null; |
|
| 35 | 2 | if ($originalValue !== $this->{$property}) { |
|
| 36 | 2 | $changed[] = $property; |
|
| 37 | } |
||
| 38 | } |
||
| 39 | 2 | return $changed; |
|
| 40 | } |
||
| 42 |