Better typing for isSubscribed

This commit is contained in:
Mikael Nordfeldth 2014-03-05 13:44:34 +01:00
parent f83b2cf324
commit f323f234d7
2 changed files with 2 additions and 2 deletions

View File

@ -745,7 +745,7 @@ class Profile extends Managed_DataObject
* @param Profile $other
* @return boolean
*/
function isSubscribed($other)
function isSubscribed(Profile $other)
{
return Subscription::exists($this, $other);
}

View File

@ -134,7 +134,7 @@ class User extends Managed_DataObject
return $this->_profile;
}
function isSubscribed($other)
function isSubscribed(Profile $other)
{
return $this->getProfile()->isSubscribed($other);
}