Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
6 | trait Startable |
||
7 | { |
||
8 | /** @var bool */ |
||
9 | protected $started = false; |
||
10 | |||
11 | /** |
||
12 | * @return bool |
||
13 | */ |
||
14 | 2 | public function isStarted(): bool |
|
15 | { |
||
16 | 2 | return $this->started; |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * @return bool |
||
21 | */ |
||
22 | 2 | public function isNotStarted(): bool |
|
23 | { |
||
24 | 2 | return !$this->started; |
|
25 | } |
||
26 | |||
27 | 2 | public function start(): void |
|
30 | 2 | } |
|
31 | } |
||
32 |