| Total Complexity | 6 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FactoryMuffin extends OriginalFactoryMuffin { |
||
| 9 | /** |
||
| 10 | * Generate and set the model attributes. |
||
| 11 | * NOTE: Patch the original method to support dynamic setter and getter |
||
| 12 | * of the OCP\AppFramework\Db\Entity class |
||
| 13 | * |
||
| 14 | * @param object $model The model instance. |
||
| 15 | * @param array $attr The model attributes. |
||
| 16 | * |
||
| 17 | * @return void |
||
| 18 | */ |
||
| 19 | protected function generate($model, array $attr = []) { |
||
| 35 |