| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | abstract class Model extends Entity { |
||
| 29 | /** |
||
| 30 | * FactoryMuffin checks for the existence of setters with method_exists($obj, $attr) but that returns false. |
||
| 31 | * By overwriting the __set() magic method we can trigger the changed flag on $obj->attr assignment. |
||
| 32 | * |
||
| 33 | * @param $name |
||
| 34 | * @param $value |
||
| 35 | */ |
||
| 36 | public function __set($name, $value) { |
||
| 40 |