diff --git a/Facade/Computer.php b/Facade/Computer.php new file mode 100644 index 0000000..1349779 --- /dev/null +++ b/Facade/Computer.php @@ -0,0 +1,52 @@ +bios = $bios; + $this->opsys = $os; + } + + public function turnOn() + { + $this->bios->execute(); + $this->bios->waitForKeyPress(); + $this->bios->launch($this->opsys); + } + + public function turnOff() + { + $this->opsys->halt(); + $this->bios->powerDown(); + } + +} \ No newline at end of file