From 9ec1dce9ab45bc4c3ac8eda10d32fb580c4e58ff Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 9 Jan 2017 23:58:03 +0300 Subject: [PATCH] TopUserDTO type hints added. --- .../Bundle/PointToolsBundle/DTO/TopUserDTO.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/DTO/TopUserDTO.php b/src/Skobkin/Bundle/PointToolsBundle/DTO/TopUserDTO.php index ac62e9c..afe4a05 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/DTO/TopUserDTO.php +++ b/src/Skobkin/Bundle/PointToolsBundle/DTO/TopUserDTO.php @@ -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; }