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) |
||
47 | |||
48 | /** |
||
49 | * Get config writer |
||
50 | * |
||
51 | * @return PhpArray |
||
52 | */ |
||
53 | public function getConfigWriter() : PhpArray |
||
57 | |||
58 | /** |
||
59 | * Get target path |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getTargetPath() : string |
||
67 | } |