| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 5 | public function generate($name, ActionSchema $action) { |
|
| 19 | 5 | $trait = PhpTrait::create($name) |
|
| 20 | 5 | ->setDescription('Base methods for ' . $action->getClass()) |
|
| 21 | ->setLongDescription('This code is automatically created. Modifications will probably be overwritten.'); |
||
| 22 | 5 | ||
| 23 | 5 | $this->ensureUseStatements($trait); |
|
| 24 | $this->addMethods($trait, $action); |
||
| 25 | 5 | ||
| 26 | return $trait; |
||
| 27 | } |
||
| 28 | |||
| 38 | } |