2015-05-31 06:16:10 +00:00
|
|
|
<?php
|
|
|
|
|
2016-03-23 16:59:06 +00:00
|
|
|
namespace Skobkin\Bundle\PointToolsBundle\DTO;
|
2015-05-31 06:16:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Data Transfer Object for top users list
|
|
|
|
*/
|
|
|
|
class TopUserDTO
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2016-12-11 22:26:27 +00:00
|
|
|
private $login;
|
2015-05-31 06:16:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2016-12-11 22:26:27 +00:00
|
|
|
private $subscribersCount;
|
2015-05-31 06:16:10 +00:00
|
|
|
|
2017-01-09 20:58:03 +00:00
|
|
|
public function __construct(string $login, int $subscribersCount)
|
2015-05-31 06:16:10 +00:00
|
|
|
{
|
|
|
|
$this->login = $login;
|
|
|
|
$this->subscribersCount = $subscribersCount;
|
|
|
|
}
|
2016-12-11 22:26:27 +00:00
|
|
|
|
2017-01-09 20:58:03 +00:00
|
|
|
public function getLogin(): string
|
2016-12-11 22:26:27 +00:00
|
|
|
{
|
|
|
|
return $this->login;
|
|
|
|
}
|
|
|
|
|
2017-01-09 20:58:03 +00:00
|
|
|
public function getSubscribersCount(): int
|
2016-12-11 22:26:27 +00:00
|
|
|
{
|
|
|
|
return $this->subscribersCount;
|
|
|
|
}
|
2015-05-31 06:16:10 +00:00
|
|
|
}
|