point-tools/src/Skobkin/Bundle/PointToolsBundle/DTO/TopUserDTO.php

35 lines
593 B
PHP
Raw Normal View History

<?php
namespace Skobkin\Bundle\PointToolsBundle\DTO;
/**
* Data Transfer Object for top users list
*/
class TopUserDTO
{
/**
* @var string
*/
2016-12-11 22:26:27 +00:00
private $login;
/**
* @var int
*/
2016-12-11 22:26:27 +00:00
private $subscribersCount;
2017-01-09 20:58:03 +00:00
public function __construct(string $login, int $subscribersCount)
{
$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;
}
}