/** * Returns the string representation of the class * * @return string */ public function render() { return "\\c" . parent::render() . $this->_renderRepetition(); }
/** * Returns the string representation of the class * * @return string */ public function render() { $char = parent::render(); $needsGroup = strlen($this->getChar()) > 1 && $this->getRepetition(); return ($needsGroup ? "(?:{$char})" : $char) . $this->_renderRepetition(); }