Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stubs for PHPStorm #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions stubs/sass.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 {}