| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function load(ObjectManager $manager): void |
||
| 13 | { |
||
| 14 | $action = new Action(); |
||
| 15 | $action->setType('use'); |
||
| 16 | $action->setDescription('You use the sword.'); |
||
| 17 | $action->setId(44); |
||
| 18 | $action->setRequiredLocationId(11); |
||
| 19 | $action->setItemId(99); |
||
| 20 | $manager->persist($action); |
||
| 21 | |||
| 22 | $manager->flush(); |
||
| 23 | } |
||
| 30 |