forked from jamierumbelow/sassphp
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathsass.php
More file actions
133 lines (112 loc) · 2.09 KB
/
Copy pathsass.php
File metadata and controls
133 lines (112 loc) · 2.09 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?
/**
* SASS compiler via libsass
* @author Sergey Odintsov <nixx.dj@gmail.com>
* @link https://github.com/sensational/sassphp
*/
class Sass {
/**
* 'Nested' format
* */
const STYLE_NESTED = 0;
/**
* 'Expanded' format
*/
const STYLE_EXPANDED = 1;
/**
* 'Compact' format
*/
const STYLE_COMPACT = 2;
/**
* 'Compressed' format
*/
const STYLE_COMPRESSED = 3;
/**
* Constructor SASS
*/
public function __construct() {}
/**
* Compile string
* @param string $string input SASS string
* @return string output CSS
* @throws SassException if compilation failed
*/
public function compile($string) {}
/**
* Compile file
* @param string $filename input filename
* @return string compiled content of the file
* @throws SassException if compilation failed or invalid arguments given
*/
public function compileFile($filename) {}
/**
* Set style
* @param int $style
* @return void
*/
public function setStyle($style) {}
/**
* Get style
* @return int
*/
public function getStyle() {}
/**
* Set enable comments
* @param bool $comments
* @return bool
*/
public function setComments($comments) {}
/**
* Is enable comments
* @return bool
*/
public function getComments() {}
/**
* Set map path
* @param string $map input path
* @return void
*/
public function setMapPath($map) {}
/**
* Get map path
* @return string
*/
public function getMapPath($map) {}
/**
* Set include path
* @param string $path input directory
* @return void
*/
public function setIncludePath($path) {}
/**
* Get include path
* @return string
*/
public function getIncludePath() {}
/**
* Set precision
* @param int $precision
* @return void
*/
public function setPrecision($precision) {}
/**
* Get include path
* @return int
*/
public function getPrecision() {}
/**
* Set map embed
* @param bool $embed
* @return void
*/
public function setEmbed($embed) {}
/**
* Is map embed
* @return bool
*/
public function getEmbed() {}
}
/**
* Runtime compilation error
*/
class SassException extends Exception {}