TopUserDTO type hints added.
This commit is contained in:
parent
793d54e206
commit
9ec1dce9ab
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue