1 | <?php |
||
14 | class SaveContentConfigObserver implements ParsedContentObserverInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Config writer |
||
19 | * |
||
20 | * @var PhpArray |
||
21 | */ |
||
22 | private $configWriter; |
||
23 | |||
24 | /** |
||
25 | * Target path |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | private $targetPath; |
||
30 | |||
31 | public function __construct(PhpArray $configWriter,string $targetPath) |
||
36 | |||
37 | /** |
||
38 | * Save Content |
||
39 | * |
||
40 | * {@inheritDoc} |
||
41 | * @see \Jolicht\MarkdownCms\Parser\Observer\ParsedContentObserverInterface::__invoke() |
||
42 | */ |
||
43 | public function __invoke(array $config) |
||
52 | |||
53 | /** |
||
54 | * Get config writer |
||
55 | * |
||
56 | * @return PhpArray |
||
57 | */ |
||
58 | public function getConfigWriter() : PhpArray |
||
62 | |||
63 | /** |
||
64 | * Get target path |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getTargetPath() : string |
||
72 | } |