| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | final class BsCount implements Count |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Ctor. |
||
| 13 | * |
||
| 14 | * @param int $count how many times something happened. |
||
| 15 | */ |
||
| 16 | public function __construct( |
||
| 17 | /** |
||
| 18 | * How many times something happened. |
||
| 19 | * |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private int $count = 0 |
||
| 23 | ) { |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | public function increment(): Count |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | public function value(): int |
||
| 42 |