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
+4 -1
View File
@@ -4,5 +4,8 @@ namespace GeoIP2\Record;
class Subdivision extends AbstractPlaceRecord
{
protected $validAttributes = Array('confidence',
'geoname_id',
'iso_code',
'names');
}