for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File: StatsDTO.php
*
* @author Maciej Sławik <[email protected]>
* Github: https://github.com/maciejslawik
*/
namespace MSlwk\Otomoto\App\Stats\Data;
* Class StatsDTO
* @package MSlwk\Otomoto\App\Stats\Data
class StatsDTO implements StatsDTOInterface
{
* @var float
private $averagePrice = 0.0;
private $averageMileage = 0.0;
private $averageYear = 0.0;
* @return float
public function getAveragePrice(): float
return $this->averagePrice;
}
* @param float $price
* @return void
public function setAveragePrice(float $price): void
$this->averagePrice = $price;
public function getAverageMileage(): float
return $this->averageMileage;
* @param float $mileage
public function setAverageMileage(float $mileage): void
$this->averageMileage = $mileage;
public function getAverageYear(): float
return $this->averageYear;
* @param float $year
public function setAverageYear(float $year): void
$this->averageYear = $year;