Add default value for locales in model/record constructors

This commit is contained in:
Gregory Oschwald 2013-10-30 08:58:01 -07:00
parent bdb13d31f6
commit 6d21d5682a
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class City extends Country
/**
* @ignore
*/
public function __construct($raw, $locales)
public function __construct($raw, $locales = array('en'))
{
parent::__construct($raw, $locales);

View File

@ -47,7 +47,7 @@ class Country implements \JsonSerializable
/**
* @ignore
*/
public function __construct($raw, $locales)
public function __construct($raw, $locales = array('en'))
{
$this->raw = $raw;

View File

@ -9,7 +9,7 @@ abstract class AbstractPlaceRecord extends AbstractRecord
/**
* @ignore
*/
public function __construct($record, $locales)
public function __construct($record, $locales = array('en'))
{
$this->locales = $locales;
parent::__construct($record);