diff --git a/Adapter/Adapter.php b/Adapter/Adapter.php deleted file mode 100644 index 85b9385..0000000 --- a/Adapter/Adapter.php +++ /dev/null @@ -1,41 +0,0 @@ -select('SHOW TABLES'); - } -} - -class SQLite implements DatabaseAdapter -{ - public function getTables() - { - return system('sqlite --list-tables'); - } -} - diff --git a/Adapter/Book.php b/Adapter/Book.php new file mode 100644 index 0000000..dcd3b0f --- /dev/null +++ b/Adapter/Book.php @@ -0,0 +1,25 @@ +eBook = $ebook; + } + + /** + * This cass makes the proper translation from one interface to another + */ + public function open() + { + $this->eBook->pressStart(); + } + + public function turnPage() + { + $this->eBook->pressNext(); + } + +} \ No newline at end of file diff --git a/Adapter/ElecBookInterface.php b/Adapter/ElecBookInterface.php new file mode 100644 index 0000000..b16bd35 --- /dev/null +++ b/Adapter/ElecBookInterface.php @@ -0,0 +1,18 @@ +