| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function load(ObjectManager $manager): void |
||
| 13 | { |
||
| 14 | $location = new Location(); |
||
| 15 | $location->setName('Mountain'); |
||
| 16 | $location->setDescription('A misty mountain.'); |
||
| 17 | $location->setDetails('The mountain is hidden in a vast sea of mist.'); |
||
| 18 | $location->setId(1); |
||
| 19 | $manager->persist($location); |
||
| 20 | |||
| 21 | $location1 = new Location(); |
||
| 22 | $location1->setName('Cave'); |
||
| 23 | $location1->setDescription('A dark cave.'); |
||
| 24 | $location1->setDetails('The cave is damp and cold.'); |
||
| 25 | $location1->setId(11); |
||
| 26 | $manager->persist($location1); |
||
| 27 | |||
| 28 | $location2 = new Location(); |
||
| 29 | $location2->setName('Lake'); |
||
| 30 | $location2->setDescription('A serene lake.'); |
||
| 31 | $location2->setDetails('A calm lake reflecting the beauty of its surroundings.'); |
||
| 32 | $location2->setId(22); |
||
| 33 | $manager->persist($location2); |
||
| 34 | |||
| 35 | $manager->flush(); |
||
| 36 | } |
||
| 43 |