1 | <?php |
||
9 | final class LegacyFormatter implements FormatterInterface |
||
10 | { |
||
11 | /** |
||
12 | * Options for the formatter |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | private $options = []; |
||
17 | |||
18 | /** |
||
19 | * Default formatter options |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | private $defaultOptions = [ |
||
24 | 'lowercase' => false, |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * Variable to save the settings in, type depends on implementation |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | private $data = []; |
||
33 | |||
34 | /** |
||
35 | * LegacyFormatter constructor. |
||
36 | * |
||
37 | * @param array $options Formatter optioms |
||
38 | */ |
||
39 | 2 | public function __construct(array $options = []) |
|
43 | |||
44 | /** |
||
45 | * Sets the data (done by the parser) |
||
46 | * |
||
47 | * @param array $settings |
||
48 | */ |
||
49 | 2 | public function setData(array $settings) : void |
|
53 | |||
54 | /** |
||
55 | * Gets the data (in the preferred format) |
||
56 | * |
||
57 | * @return \stdClass |
||
58 | */ |
||
59 | 2 | public function getData() : \stdClass |
|
73 | } |
||
74 |