mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 14:37:27 +02:00
first, the todos for fixing the pattern
This commit is contained in:
@@ -21,6 +21,10 @@ interface DatabaseAdapter
|
|||||||
|
|
||||||
class MySQL implements DatabaseAdapter
|
class MySQL implements DatabaseAdapter
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The Adapter need to wrap the Adaptee in the constructor
|
||||||
|
* much like Decorator does. Nothing is adapted here...
|
||||||
|
*/
|
||||||
public function getTables()
|
public function getTables()
|
||||||
{
|
{
|
||||||
return $this->select('SHOW TABLES');
|
return $this->select('SHOW TABLES');
|
||||||
|
Reference in New Issue
Block a user