for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace AlecRabbit\Counters\Core\Traits;
use AlecRabbit\Traits\GettableName;
use AlecRabbit\Traits\Startable;
trait SimpleCounterFields
{
use GettableName, Startable;
/** @var int */
protected $value = 0;
protected $initialValue = 0;
protected $step = 1;
protected $bumped = 0;
/**
* @return int
*/
public function getValue(): int
return $this->value;
}
public function getInitialValue(): int
return $this->initialValue;
public function getStep(): int
return $this->step;
public function getBumped(): int
return $this->bumped;