shell = new Exec(); } /** * @return Exec */ public function getShell(): Exec { return $this->shell; } public function setBuilder(Builder $builder): BackupManager { $this->builder = $builder; return $this; } public function getBuilder(): Builder { return $this->builder; } /** * @return string * @throws Throwable */ public function execute() { $builder = $this->getBuilder()->builder(); return $this->shell->run($builder); } }