PHP Class SassCommentNode

Represents a CSS comment.
Author: Chris Yates
Inheritance: extends SassNode
Mostra file Open project: richthegeek/phpsass Class Usage Examples

Public Methods

Method Description
__construct ( object $token ) SassCommentNode constructor.
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
parse ( mixed $context ) : array Parse this node.
render ( ) : string Render this node.

Protected Methods

Method Description
getValue ( )

Method Details

__construct() public method

SassCommentNode constructor.
public __construct ( object $token )
$token object source token

getValue() protected method

protected getValue ( )

isa() public static method

Returns a value indicating if the token represents this type of node.
public static isa ( object $token ) : boolean
$token object token
return boolean true if the token represents this type of node, false if not

parse() public method

Parse this node.
public parse ( mixed $context ) : array
$context mixed
return array the parsed node - an empty array

render() public method

Render this node.
public render ( ) : string
return string the rendered node