PHP Class PhpCss\Scanner\Token

Afficher le fichier Open project: ThomasWeinert/PhpCss Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( integer $type, string $content = '', integer $position ) : Token Construct and initialize token
__get ( string $name ) : integer | string Get token attribute
__set ( string $name, mixed $value ) : void Do not allow to set attributes
__toString ( ) : string Convert token object to string
typeToString ( integer $type ) : string Return string representation of token type

Méthodes protégées

Méthode Description
quoteContent ( string $content ) : string Escape content for double quoted, single line string representation

Method Details

__construct() public méthode

Construct and initialize token
public __construct ( integer $type, string $content = '', integer $position ) : Token
$type integer
$content string
$position integer
Résultat Token

__get() public méthode

Get token attribute
public __get ( string $name ) : integer | string
$name string
Résultat integer | string

__set() public méthode

Do not allow to set attributes
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
Résultat void

__toString() public méthode

Convert token object to string
public __toString ( ) : string
Résultat string

quoteContent() protected méthode

Escape content for double quoted, single line string representation
protected quoteContent ( string $content ) : string
$content string
Résultat string

typeToString() public static méthode

Return string representation of token type
public static typeToString ( integer $type ) : string
$type integer
Résultat string