Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getChangeFor($propertyName) |
||
39 | { |
||
40 | foreach ($this->getIterator() as $change) { |
||
41 | /* @var \Isolate\UnitOfWork\Entity\Value\Change\ScalarChange $change */ |
||
42 | if ($change->isFor($propertyName)) { |
||
43 | return $change; |
||
44 | } |
||
45 | } |
||
46 | |||
47 | throw new RuntimeException(sprintf("There are no changes for \"%s\" property.", $propertyName)); |
||
48 | } |
||
49 | |||
87 |