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