1 | <?php |
||
17 | class YamlContent implements ArrayContentInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var null|string |
||
21 | */ |
||
22 | private $content = null; |
||
23 | |||
24 | /** |
||
25 | * Content constructor. |
||
26 | * |
||
27 | * @param string $content |
||
28 | */ |
||
29 | 1 | public function __construct(string $content) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function get(): string |
||
41 | |||
42 | /** |
||
43 | * Return the content as an array |
||
44 | * |
||
45 | * @return array |
||
46 | * @throws \NeedleProject\FileIo\Exception\ContentException |
||
47 | */ |
||
48 | 1 | public function getArray(): array |
|
52 | } |
||
53 |