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);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getUser(): User
|
||||||
* @return User
|
|
||||||
*/
|
|
||||||
public function getUser()
|
|
||||||
{
|
{
|
||||||
return $this->user;
|
return $this->user;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,20 +27,12 @@ class UserNotFoundException extends ApiException
|
||||||
$this->login = $login;
|
$this->login = $login;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getUserId(): int
|
||||||
* Returns ID of user which was not found
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*/
|
|
||||||
public function getUserId()
|
|
||||||
{
|
{
|
||||||
return $this->userId;
|
return $this->userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getLogin(): string
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getLogin()
|
|
||||||
{
|
{
|
||||||
return $this->login;
|
return $this->login;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue