locationsList = $locationsList; } /** * @return array */ public function toOptionArray() { return $this->locationsList->getCountryStates('United States'); } }