return null;
}
- function fromProfile($profile)
+ static function fromProfile(Profile $profile)
{
- if (empty($profile)) {
- return null;
- }
-
$poco = new PoCo();
$poco->preferredUsername = $profile->nickname;
return $poco;
}
- function fromGroup($group)
+ static function fromGroup(User_group $group)
{
- if (empty($group)) {
- return null;
- }
-
$poco = new PoCo();
$poco->preferredUsername = $group->nickname;