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; private $subscribersCount;
public function __construct($login, $subscribersCount) public function __construct(string $login, int $subscribersCount)
{ {
$this->login = $login; $this->login = $login;
$this->subscribersCount = $subscribersCount; $this->subscribersCount = $subscribersCount;
} }
/** public function getLogin(): string
* @return string
*/
public function getLogin()
{ {
return $this->login; return $this->login;
} }
/** public function getSubscribersCount(): int
* @return int
*/
public function getSubscribersCount()
{ {
return $this->subscribersCount; return $this->subscribersCount;
} }