Created
July 17, 2019 19:47
-
-
Save vahid-almasi/f122d21013316e1974dc01726b2712b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class eReaderAdapter implements BookInterface { | |
private $reader; | |
public function __construct(eReaderInterface $reader) | |
{ | |
$this->reader = $reader; | |
} | |
public function open() | |
{ | |
return $this->reader->turnOn(); | |
} | |
public function turnPage() | |
{ | |
return $this->reader->pressNextButton(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment