| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function load(ObjectManager $manager) |
||
| 13 | { |
||
| 14 | $rings = $this->getPolygonRings(); |
||
| 15 | $polygon = new Polygon($rings); |
||
|
|
|||
| 16 | $neighbourhood = new Neighbourhood(); |
||
| 17 | $neighbourhood->setBoundingPolygon(new Polygon($this->getPolygonRings())); |
||
| 18 | $neighbourhood |
||
| 19 | ->setObjectId(140) |
||
| 20 | ->setMiPrinx(140) |
||
| 21 | ->setWardcd('E05002001') |
||
| 22 | ->setPerimeterM(3812.45483398) |
||
| 23 | ->setMsoa11cd('E02003047') |
||
| 24 | ->setGeoPoint2d('[ 51.439728, -2.617112 ]') |
||
| 25 | ->setAreaM2(252697.921875) |
||
| 26 | ->setLsoa11nm('Bristol 036E') |
||
| 27 | ->setLsoa11cd('E01014700') |
||
| 28 | ->setLsoa11ln('Ashton'); |
||
| 29 | |||
| 30 | $neighbourhood->setLsoa11ln('Ashton'); |
||
| 31 | $manager->persist($neighbourhood); |
||
| 32 | $manager->flush(); |
||
| 33 | } |
||
| 774 |