for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace cwreden\php7ccAnalyser;
class AnalyserEffectedFilesResult
{
/**
* @var array
*/
private $files = [];
* @var int
private $warningCounter = 0;
private $errorCounter = 0;
* @return int
public function getTotal(): int
return count($this->files);
}
* @param $key
public function addIfNotAlready(string $key): void
if (!in_array($key, $this->files)) {
$this->files[] = $key;
* @param int $value
public function increaseWarningCounterBy(int $value): void
$this->warningCounter += $value;
public function increaseErrorCounterBy(int $value): void
$this->errorCounter += $value;
public function getWarningCounter(): int
return $this->warningCounter;
public function getErrorCounter(): int
return $this->errorCounter;