TopUserDTO type hints added.

This commit is contained in:
Alexey Skobkin 2017-01-09 23:58:03 +03:00
parent 793d54e206
commit 9ec1dce9ab

View file

@ -17,24 +17,18 @@ class TopUserDTO
*/
private $subscribersCount;
public function __construct($login, $subscribersCount)
public function __construct(string $login, int $subscribersCount)
{
$this->login = $login;
$this->subscribersCount = $subscribersCount;
}
/**
* @return string
*/
public function getLogin()
public function getLogin(): string
{
return $this->login;
}
/**
* @return int
*/
public function getSubscribersCount()
public function getSubscribersCount(): int
{
return $this->subscribersCount;
}