public function __construct($functionName) { $this->functionName = $functionName; $this->regexp = strtr(preg_quote($this->functionName, '/'), array('\\*' => '.*?', '\\?' => '.')); }