| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | trait SimpleCounterFields |
||
| 9 | { |
||
| 10 | use GettableName, Startable; |
||
| 11 | |||
| 12 | /** @var int */ |
||
| 13 | protected $value = 0; |
||
| 14 | |||
| 15 | /** @var int */ |
||
| 16 | protected $initialValue = 0; |
||
| 17 | |||
| 18 | /** @var int */ |
||
| 19 | protected $step = 1; |
||
| 20 | |||
| 21 | /** @var int */ |
||
| 22 | protected $bumped = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return int |
||
| 26 | */ |
||
| 27 | public function getValue(): int |
||
| 28 | { |
||
| 29 | return $this->value; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function getInitialValue(): int |
||
| 36 | { |
||
| 37 | return $this->initialValue; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getStep(): int |
||
| 44 | { |
||
| 45 | return $this->step; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getBumped(): int |
||
| 54 | } |
||
| 55 | } |
||
| 56 |