Esempio n. 1
0
 /**
  * Returns the string representation of the class
  * 
  * @return string
  */
 public function render()
 {
     return "\\c" . parent::render() . $this->_renderRepetition();
 }
Esempio n. 2
0
 /**
  * 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();
 }