Updated CompilerInterface.php

This commit is contained in:
Netkas 2022-10-22 04:30:27 -04:00
parent 778a4fa2e6
commit 5016b42759

View file

@ -2,9 +2,26 @@
namespace ncc\Interfaces;
use ncc\Abstracts\Options\BuildConfigurationValues;
interface CompilerInterface
{
public function prepare(array $options, string $src);
/**
* Prepares the package for the build process, this method is called before build()
*
* @param array $options Options to pass on to the compiler
* @param string $path The path that the project file is located in (project.json)
* @param string $build_configuration The build configuration to use to build the project
* @return void
*/
public function prepare(array $options, string $path, string $build_configuration=BuildConfigurationValues::DefaultConfiguration): void;
public function build(array $options, string $src);
/**
* Builds the package, returns the output path of the build
*
* @param array $options Options to pass on to the compiler
* @param string $path The path that the project file is located in (project.json)
* @return string Returns the output path of the build
*/
public function build(array $options, string $path): string;
}