Merge pull request #108 from kornrunner/user-gender-locale

User gender and locale
1.0
Phil Sturgeon 2014-06-11 09:12:14 +01:00
commit 914200b515
2 changed files with 13 additions and 1 deletions

View File

@ -14,6 +14,8 @@ class User
protected $description;
protected $imageUrl;
protected $urls;
protected $gender;
protected $locale;
public function __get($name)
{
@ -61,6 +63,8 @@ class User
'description' => $this->description,
'imageUrl' => $this->imageUrl,
'urls' => $this->urls,
'gender' => $this->gender,
'locale' => $this->locale,
);
}
@ -99,6 +103,12 @@ class User
case 'urls':
$this->urls = $value;
break;
case 'gender':
$this->gender = $value;
break;
case 'locale':
$this->locale = $value;
break;
}
}

View File

@ -24,7 +24,9 @@ class UserTest extends \PHPUnit_Framework_TestCase
'location' => 'mock_location',
'description' => 'mock_description',
'imageUrl' => 'mock_imageUrl',
'urls' => 'mock_urls'
'urls' => 'mock_urls',
'gender' => 'mock_gender',
'locale' => 'mock_locale'
);
}