points[] = new Sector((int) $x, (int) $y, (int) $width, (int) $height); return $this; } public function random(): Sector { $key = array_rand($this->points); $sector = $this->points[$key]; unset($this->points[$key]); return $sector; } }