1 | <?php |
||
10 | class autoptimizeCSSmin |
||
11 | { |
||
12 | /** |
||
13 | * Minifier instance. |
||
14 | * |
||
15 | * @var Autoptimize\tubalmartin\CssMin\Minifier|null |
||
16 | */ |
||
17 | protected $minifier = null; |
||
18 | |||
19 | /** |
||
20 | * Construtor. |
||
21 | * |
||
22 | * @param bool $raise_limits Whether to raise memory limits or not. Default true. |
||
23 | */ |
||
24 | public function __construct( $raise_limits = true ) |
||
28 | |||
29 | /** |
||
30 | * Runs the minifier on given string of $css. |
||
31 | * Returns the minified css. |
||
32 | * |
||
33 | * @param string $css CSS to minify. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function run( $css ) |
||
43 | |||
44 | /** |
||
45 | * Static helper. |
||
46 | * |
||
47 | * @param string $css CSS to minify. |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public static function minify( $css ) |
||
57 | } |
||
58 |