@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Engine;
namespace App\Engine\Cfnpp ;
use App\Dom\Document;
use App\Dom\Node;
@ -14,7 +14,7 @@ use App\Dom\NodeFunction;
*
* @author Adam Pippin < hello @ adampippin . ca >
*/
class Cfnpp implements ICompile
class Compiler implements \App\Engine\ ICompile
{
/**
* Functions that can be called by the document.
@ -67,14 +67,14 @@ class Cfnpp implements ICompile
* Compile a set of documents and return the result.
*
* @param Document[] $documents
* @param IOptions $options
* @param \App\Engine\ IOptions $options
* @return void
*/
public function compile(array $documents, IOptions $options): Document
public function compile(array $documents, \App\Engine\ IOptions $options): Document
{
if (!($options instanceof Cfnpp Options))
if (!($options instanceof Options))
{
throw new \Exception('Cfnpp compiler requires Cfnpp Options');
throw new \Exception('Cfnpp\Compiler requires Cfnpp\ Options');
}
// Initialize state
@ -83,7 +83,7 @@ class Cfnpp implements ICompile
$this->merge_functions = [];
// Register built-in functions
$cfnpp_functions = new Cfnpp Functions($this, $options);
$cfnpp_functions = new Functions($this, $options);
$cfnpp_functions->register($this);
// Process each passed document