Check attribute validity and return null on empty but valid attributes

This commit is contained in:
Gregory Oschwald
2013-05-08 07:18:50 -07:00
parent 45228dfad4
commit 275bda0fc4
10 changed files with 53 additions and 22 deletions
+5 -1
View File
@@ -4,5 +4,9 @@ namespace GeoIP2\Record;
class RepresentedCountry extends Country
{
protected $validAttributes = Array('confidence',
'geoname_id',
'iso_code',
'names',
'type');
}