New PHP 7.1 type hints for service exceptions.

This commit is contained in:
Alexey Skobkin 2017-01-13 02:18:57 +03:00
parent 841c45bddb
commit 415efe9e6e
2 changed files with 3 additions and 14 deletions

View File

@ -20,10 +20,7 @@ class InvalidUserDataException extends \Exception
parent::__construct($message, $code, $previous);
}
/**
* @return User
*/
public function getUser()
public function getUser(): User
{
return $this->user;
}

View File

@ -27,20 +27,12 @@ class UserNotFoundException extends ApiException
$this->login = $login;
}
/**
* Returns ID of user which was not found
*
* @return int
*/
public function getUserId()
public function getUserId(): int
{
return $this->userId;
}
/**
* @return string
*/
public function getLogin()
public function getLogin(): string
{
return $this->login;
}