1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-20 06:00:08 -07:00

Add Stats class

This commit is contained in:
David Hübner 2017-04-16 22:20:08 +02:00
parent cafc6e55b0
commit d62ec288c3

View File

@ -0,0 +1,61 @@
<?php
namespace AppBundle\Utils;
class Stats
{
private $success;
private $error;
private $skipped;
/**
* Stats constructor.
*/
public function __construct()
{
$this->skipped = 0;
$this->error = 0;
$this->success = 0;
}
public function success()
{
$this->success = $this->success + 1;
}
public function error()
{
$this->error = $this->error + 1;
}
public function skipped()
{
$this->skipped = $this->skipped + 1;
}
/**
* @return int
*/
public function getSuccess()
{
return $this->success;
}
/**
* @return int
*/
public function getError()
{
return $this->error;
}
/**
* @return int
*/
public function getSkipped()
{
return $this->skipped;
}
}