mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
13 lines
408 B
PHP
13 lines
408 B
PHP
<?php namespace Visiosoft\LocationModule\Country;
|
|
|
|
use Visiosoft\LocationModule\Country\Contract\CountryInterface;
|
|
use Anomaly\Streams\Platform\Model\Location\LocationCountriesEntryModel;
|
|
|
|
class CountryModel extends LocationCountriesEntryModel implements CountryInterface
|
|
{
|
|
public function getCountry($id)
|
|
{
|
|
return CountryModel::query()->where('location_countries.id', $id)->first();
|
|
}
|
|
}
|