aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/assets/Compiler.php
blob: bdeb4110dcbab02c4f25ddc29daaa5bb6f7f9d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
namespace Assets;

/**
 * Compiler interface for all compilers that may compile assets.
 *
 * @author  Jan-Hendrik Willms <tleilax+studip@gmail.com>
 * @license GPL2 or any later version
 * @since   Stud.IP 4.4
 */
interface Compiler
{
    /**
     * Returns an instance of the compiler
     * @return Compiler instance
     */
    public static function getInstance();

    /**
     * Compiles an input string. Additional variables may be passed.
     *
     * @param String $input     Content to compile
     * @param Array  $variables Additional variables for the compilation
     * @return String containing the generated CSS
     */
    public function compile($input, array $variables = []);
}