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