New PHP 7.1 type hints for service exceptions.
This commit is contained in:
parent
841c45bddb
commit
415efe9e6e
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue