You are here

public function CssParser::__construct in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/CssParser.php \CssParser::__construct()
  2. 7.2 QueryPath/CssParser.php \CssParser::__construct()

File

QueryPath/CssParser.php, line 117

Class

CssParser

Code

public function __construct($string, CssEventHandler $handler) {
  $this->originalString = $string;
  $is = new CssInputStream($string);
  $this->scanner = new CssScanner($is);
  $this->handler = $handler;
}