public function __invoke($matches) { if ($matches[0] == "'") { $this->_quote_count++; return "'"; } elseif (!$this->isInString()) { return $this->substituteParam(); } else { return "?"; } }