PHP Class Minify_ScssCssSource, minify

Inheritance: extends Minify_Source
Show file Open project: mrclay/minify

Public Methods

Method Description
__construct ( array $spec, Minify_CacheInterface $cache )
getContent ( ) : string Get content
getLastModified ( ) : integer Get last modified of all parsed files

Private Methods

Method Description
cacheIsStale ( array $cache ) : boolean Determine whether .scss file needs to be re-compiled.
compile ( string $filename ) : array Compile .scss file
getCache ( ) : array Get SCSS cache object
getCacheId ( string $prefix = 'minify' ) : string Make a unique cache id for for this source.

Method Details

__construct() public method

public __construct ( array $spec, Minify_CacheInterface $cache )
$spec array
$cache Minify_CacheInterface

getContent() public method

Get content
public getContent ( ) : string
return string

getLastModified() public method

Get last modified of all parsed files
public getLastModified ( ) : integer
return integer