From 688758badb1e5fefb85a8f04e1fec00814919d27 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 15 Dec 2022 10:46:08 +0100 Subject: [PATCH] wip #5648 --- src/Compiler/DummyCompiler.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Compiler/DummyCompiler.php b/src/Compiler/DummyCompiler.php index bd672c7..f672656 100644 --- a/src/Compiler/DummyCompiler.php +++ b/src/Compiler/DummyCompiler.php @@ -2,10 +2,16 @@ namespace Fluidbook\Tools\Compiler; +use Cubist\Util\Data; use Cubist\Util\Files\VirtualDirectory; class DummyCompiler implements CompilerInterface { + /** + * @var Data + */ + protected $_data; + public function addContentLock($page, $unlockConditions = '') { // TODO: Implement addContentLock() method. } @@ -27,11 +33,11 @@ class DummyCompiler implements CompilerInterface { } public function getSetting($key, $default = null) { - // TODO: Implement getSetting() method. + return $this->_data->get($key, $default); } public function setSetting($key, $value) { - // TODO: Implement setSetting() method. + $this->_data->set($key, $value); } public function getVirtualDirectory(): VirtualDirectory { @@ -77,4 +83,12 @@ class DummyCompiler implements CompilerInterface { public function addJsLib($name, $files) { // TODO: Implement addJsLib() method. } + + + /** + * @param Data $data + */ + public function setData(Data $data): void { + $this->_data = $data; + } } -- 2.39.5