| 1 | <?php |
||
| 20 | class DownloadsStat |
||
| 21 | { |
||
| 22 | /** @var int */ |
||
| 23 | private $total; |
||
| 24 | |||
| 25 | /** @var int */ |
||
| 26 | private $monthly; |
||
| 27 | |||
| 28 | /** @var int */ |
||
| 29 | private $daily; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * DownloadsStat constructor. |
||
| 33 | * |
||
| 34 | * @param int $total |
||
| 35 | * @param int $monthly |
||
| 36 | * @param int $daily |
||
| 37 | */ |
||
| 38 | public function __construct(int $total = 0, int $monthly = 0, int $daily = 0) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | public function getTotal(): int |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param int $total |
||
| 57 | * @return DownloadsStat |
||
| 58 | */ |
||
| 59 | public function setTotal(int $total): DownloadsStat |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | public function getMonthly(): int |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $monthly |
||
| 75 | * @return DownloadsStat |
||
| 76 | */ |
||
| 77 | public function setMonthly(int $monthly): DownloadsStat |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return int |
||
| 85 | */ |
||
| 86 | public function getDaily(): int |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @param int $daily |
||
| 93 | * @return DownloadsStat |
||
| 94 | */ |
||
| 95 | public function setDaily(int $daily): DownloadsStat |
||
| 100 | } |
||
| 101 |