From d62ec288c384257a78cfeed603af3f470ca50993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=BCbner?= Date: Sun, 16 Apr 2017 22:20:08 +0200 Subject: [PATCH] Add Stats class --- src/AppBundle/Utils/Stats.php | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/AppBundle/Utils/Stats.php diff --git a/src/AppBundle/Utils/Stats.php b/src/AppBundle/Utils/Stats.php new file mode 100644 index 0000000..64d0fee --- /dev/null +++ b/src/AppBundle/Utils/Stats.php @@ -0,0 +1,61 @@ +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; + } +}