From: Vincent Vanwaelscappel Date: Thu, 15 Dec 2022 09:46:08 +0000 (+0100) Subject: wip #5648 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=688758badb1e5fefb85a8f04e1fec00814919d27;p=fluidbook_tools.git wip #5648 --- 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; + } }