patch = $patch; $this->composer = $composer; $this->io = $io; $this->error = $error; } /** * Returns the Patch object. * * @return Patch */ public function getPatch(): Patch { return $this->patch; } /** * Returns the Composer object. * * @return Composer */ public function getComposer(): Composer { return $this->composer; } /** * Returns the IOInterface. * * @return IOInterface */ public function getIO(): IOInterface { return $this->io; } /** * Returns the exception about to be thrown when a patch cannot be applied. * * @return Exception */ public function getError(): ?Exception { return $this->error; } }