public function __construct($listener) { $this->listener = $listener; $this->lexer = $this->createLexer($this); $this->tag = ''; $this->attributes = array(); $this->current_attribute = ''; }