PHP Interface Minify_SourceInterface, minify

This allows per-source minification options and the mixing of files with content from other sources.
Afficher le fichier Open project: mrclay/minify

Méthodes publiques

Méthode Description
getContent ( ) : string Get content
getContentType ( ) : string | null Get the content type
getFilePath ( ) : string | null Get the path of the file that this source is based on (may be null)
getId ( ) : string Get id
getLastModified ( ) : integer Get last modified timestamp
getMinifier ( ) : callable | null Get the minifier
getMinifierOptions ( ) : array Get options for the minifier
setMinifier ( callable $minifier = null ) : void Set the minifier
setMinifierOptions ( array $options ) : void Set options for the minifier

Method Details

getContent() public méthode

Get content
public getContent ( ) : string
Résultat string

getContentType() public méthode

Get the content type
public getContentType ( ) : string | null
Résultat string | null

getFilePath() public méthode

Get the path of the file that this source is based on (may be null)
public getFilePath ( ) : string | null
Résultat string | null

getId() public méthode

Get id
public getId ( ) : string
Résultat string

getLastModified() public méthode

Get last modified timestamp
public getLastModified ( ) : integer
Résultat integer

getMinifier() public méthode

Get the minifier
public getMinifier ( ) : callable | null
Résultat callable | null

getMinifierOptions() public méthode

Get options for the minifier
public getMinifierOptions ( ) : array
Résultat array

setMinifier() public méthode

Set the minifier
public setMinifier ( callable $minifier = null ) : void
$minifier callable
Résultat void

setMinifierOptions() public méthode

Set options for the minifier
public setMinifierOptions ( array $options ) : void
$options array
Résultat void