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); parent::__construct($message, $code, $previous);
} }
/** public function getUser(): User
* @return User
*/
public function getUser()
{ {
return $this->user; return $this->user;
} }

View file

@ -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;
} }