PHP 클래스 PhpCss\Scanner\Token

파일 보기 프로젝트 열기: ThomasWeinert/PhpCss 1 사용 예제들

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
quoteContent ( string $content ) : string Escape content for double quoted, single line string representation

메소드 상세

__construct() 공개 메소드

Construct and initialize token
public __construct ( integer $type, string $content = '', integer $position ) : Token
$type integer
$content string
$position integer
리턴 Token

__get() 공개 메소드

Get token attribute
public __get ( string $name ) : integer | string
$name string
리턴 integer | string

__set() 공개 메소드

Do not allow to set attributes
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__toString() 공개 메소드

Convert token object to string
public __toString ( ) : string
리턴 string

quoteContent() 보호된 메소드

Escape content for double quoted, single line string representation
protected quoteContent ( string $content ) : string
$content string
리턴 string

typeToString() 공개 정적인 메소드

Return string representation of token type
public static typeToString ( integer $type ) : string
$type integer
리턴 string