public function performEdit(EditorBuffer $buffer)
 {
     $this->newCode = new IndentingLineCollection();
     $this->newCode->addIndentation();
     $this->addMethodOpening();
     $this->addMethodBody();
     $this->addReturnStatement();
     $this->addMethodClosing();
     $buffer->append($this->lineNumber, $this->getNewCodeAsStringArray());
 }
 public function performEdit(EditorBuffer $buffer)
 {
     foreach ($this->getLinesVariableIsUsedOn() as $line) {
         $buffer->replaceString($line, $this->oldName->getToken(), $this->newName->getToken());
     }
 }
 public function performEdit(EditorBuffer $buffer)
 {
     $extractedCode = $buffer->getLines($this->range);
     $buffer->replace($this->range, array($this->getIndent($extractedCode) . $this->getMethodCall()));
 }
 public function performEdit(EditorBuffer $buffer)
 {
     $buffer->append($this->line, array('    private $' . $this->propertyName . ';', ''));
 }