function trigger(Scanner $scanner) { if ($scanner->token_type() != Scanner::WORD) { return false; } if (is_null($this->word)) { return true; } return $this->word == $scanner->token(); }