PHP Class PhpCss\Ast\Visitor\Overload

Inheritance: implements PhpCss\Ast\Visitor
ファイルを表示 Open project: ThomasWeinert/PhpCss

Public Methods

Method Description
visit ( Ast $ast ) : boolean Visiting the $ast element
visitEnter ( Ast $ast ) : boolean Entering an element in the ast, called before visiting children
visitLeave ( Ast $ast ) : boolean Entering an element in the ast, called after visiting children

Protected Methods

Method Description
getMethodByClass ( Ast $object, string $prefix = 'visit' ) : array | null Map the class name of the PhpCssAst instance to a method name, validate if it exists and return it as callback.

Method Details

getMethodByClass() protected method

Map the class name of the PhpCssAst instance to a method name, validate if it exists and return it as callback.
protected getMethodByClass ( Ast $object, string $prefix = 'visit' ) : array | null
$object PhpCss\Ast
$prefix string
return array | null

visit() public method

Visiting the $ast element
public visit ( Ast $ast ) : boolean
$ast PhpCss\Ast
return boolean

visitEnter() public method

Entering an element in the ast, called before visiting children
public visitEnter ( Ast $ast ) : boolean
$ast PhpCss\Ast
return boolean

visitLeave() public method

Entering an element in the ast, called after visiting children
public visitLeave ( Ast $ast ) : boolean
$ast PhpCss\Ast
return boolean