Total Complexity | 7 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class StepsList { |
||
12 | /** |
||
13 | * @var Step[] steps storage. |
||
14 | */ |
||
15 | private $steps = []; |
||
16 | private static $instance; |
||
17 | |||
18 | public static function getInstance(): self { |
||
19 | if (null === static::$instance) { |
||
|
|||
20 | static::$instance = new static(); |
||
21 | } |
||
22 | return static::$instance; |
||
23 | } |
||
24 | |||
25 | public function add(string $step) { |
||
31 | } |
||
32 | |||
33 | public function convertToString(): string { |
||
37 | } |
||
38 | |||
39 | public function clear() { |
||
41 | } |
||
42 | } |