firstOperation = $first_operation; $this->secondOperation = $second_operation; } /** * {@inheritdoc} */ public function process(ScaffoldFilePath $destination, IOInterface $io, ScaffoldOptions $options) { $destination_path = $destination->fullPath(); // First, scaffold the original file. Disable symlinking, because we // need a copy of the file if we're going to append / prepend to it. @unlink($destination_path); $this->firstOperation->process($destination, $io, $options->overrideSymlink(FALSE)); return $this->secondOperation->process($destination, $io, $options); } }