Skip to content

Commit

Permalink
Add method all() that returns all the countries and their code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed Dec 16, 2013
1 parent a3aa3e4 commit 8d0f233
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Vinelab/Country/Guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ public function abbreviation($name)
$countries = $this->config->get('country::countries');
return array_search(ucwords($name), $countries);
}

public function all()
{
return $this->config->get('country::countries');
}
}

0 comments on commit 8d0f233

Please sign in to comment.