for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace AlecRabbit\Counters\Traits;
trait ExtendedCounterFields
{
/** @var int */
protected $max = 0;
protected $min = 0;
protected $path = 0;
protected $length = 0;
protected $diff = 0;
protected $bumpedBack = 0;
/**
* @return int
*/
public function getMax(): int
return $this->max;
}
public function getMin(): int
return $this->min;
public function getPath(): int
return $this->path;
public function getLength(): int
return $this->length;
public function getDiff(): int
return $this->diff;
// return $this->diff = $this->value - $this->initialValue;
public function getBumpedBack(): int
return $this->bumpedBack;