Code Duplication    Length = 10-11 lines in 2 locations

src/Country/CountryEntity.php 1 location

@@ 111-121 (lines=11) @@
108
     */
109
    protected $west;
110
111
    public function __construct()
112
    {
113
        $this->boundingBox = new BoundingBox();
114
        $this->regions = new RegionCollection();
115
        $this->polygon = new Polygon();
116
        $this->coordinate = new Coordinate([
117
            $this->latitude,
118
            $this->longitude,
119
        ]);
120
        $this->setNames(new CountryNameCollection());
121
    }
122
123
    /**
124
     * @return array

src/Region/RegionEntity.php 1 location

@@ 98-107 (lines=10) @@
95
     */
96
    protected $west;
97
98
    public function __construct()
99
    {
100
        $this->boundingBox = new BoundingBox();
101
        $this->polygon = new Polygon();
102
        $this->coordinate = new Coordinate([
103
            $this->latitude,
104
            $this->longitude,
105
        ]);
106
        $this->setNames(new RegionNameCollection());
107
    }
108
109
    /**
110
     * @return array