Started filling in Model and Record code

This commit is contained in:
Gregory Oschwald
2013-05-07 14:23:19 -07:00
parent 76a40bb2a1
commit 531e11f3e2
15 changed files with 67 additions and 14 deletions
+8 -1
View File
@@ -2,11 +2,18 @@
namespace GeoIP2\Model;
class City
class City extends Country
{
//XXX use properties
public $city;
public $location;
public $postal;
public $subdivisions;
public function __construct($raw, $language)
{
parent::__construct($raw, $language);
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace GeoIP2\Model;
class CityISPOrg
class CityISPOrg extends City
{
}
+13 -1
View File
@@ -4,5 +4,17 @@ namespace GeoIP2\Model;
class Country
{
// XXX - use __get__
public $continent;
public $country;
public $registered_country;
public $represented_country;
public $traits;
public $raw;
}
public function __construct($raw, $language) {
$this->country = new \GeoIP2\Record\Country($raw['country']);
$this->raw = $raw;
}
}
+5 -2
View File
@@ -2,7 +2,10 @@
namespace GeoIP2\Model;
class Omni
class Omni extends CityISPOrg
{
}
public function __construct($raw, $language) {
}
}