8000 Use numbered administrative level instead of named one by giosh94mhz · Pull Request #398 · geocoder-php/Geocoder · GitHub
[go: up one dir, main page]

Skip to content

Use numbered administrative level instead of named one #398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Feb 13, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add AddressCollection::has predicate
  • Loading branch information
giosh94mhz committed Feb 11, 2015
commit 204a3fdb47f0fe668cee1b6bc22f44ed1b6f5c59
9 changes: 9 additions & 0 deletions src/Geocoder/Model/AddressCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,17 @@ public function slice($offset, $length = null)
return array_slice($this->addresses, $offset, $length);
}

/**
* @return bool
*/
public function has($index)
{
return isset($this->addresses[$index]);
}

/**
* @return Address
* @throws \OutOfBoundsException
*/
public function get($index)
{
Expand Down
0