Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c committed Jul 18, 2014
1 parent 54e2043 commit 7f4838b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"autoload": {
"psr-4": {"Iso3166\\": "src/"}
},
"version": "1.0.0"
"version": "1.1.0"
}
4 changes: 4 additions & 0 deletions src/Codes.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ public static function map($code)
return (isset(static::$countries[$code])) ? static::$countries[$code] : 'Unknown';
}

public static function isValid($code)
{
return isset(static::$countries[$code]);
}

public static function select($class = '', $name = 'country', $selected = null)
{
Expand Down

0 comments on commit 7f4838b

Please sign in to comment.