for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the wow-apps/symfony-packagist project
* https://github.com/wow-apps/symfony-packagist
*
* (c) 2017 WoW-Apps
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WowApps\PackagistBundle\DTO;
* Class DownloadsStat
* @author Alexey Samara <[email protected]>
* @package wow-apps/symfony-packagist
class DownloadsStat
{
/** @var int */
private $total;
private $monthly;
private $daily;
* DownloadsStat constructor.
* @param int $total
* @param int $monthly
* @param int $daily
public function __construct(int $total = 0, int $monthly = 0, int $daily = 0)
$this
->setTotal($total)
->setMonthly($monthly)
->setDaily($daily)
;
}
* @return int
public function getTotal(): int
return $this->total;
* @return DownloadsStat
public function setTotal(int $total): DownloadsStat
$this->total = $total;
return $this;
public function getMonthly(): int
return $this->monthly;
public function setMonthly(int $monthly): DownloadsStat
$this->monthly = $monthly;
public function getDaily(): int
return $this->daily;
public function setDaily(int $daily): DownloadsStat
$this->daily = $daily;