dir = $dir; } public function load(string $tpl, string &$mode) { $mode = StorageAccess::MODE_SOURCE; return file_get_contents($this->dir . DIRECTORY_SEPARATOR . $tpl); } public function save(string $tpl, string $data, $mode): void { if ($mode != StorageAccess::MODE_TRANSCOMPILED) { return; } file_put_contents($this->dir . DIRECTORY_SEPARATOR . "$tpl.transc.php", $data); } }