Created
September 26, 2014 18:34
-
-
Save carlosbelisario/9c4c5ea4bc4219bdc90a 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 | |
interface Driver | |
{ | |
// lo comun que tienen los driver | |
public function crearBd(); | |
} | |
class Mysql implements Driver | |
{ | |
//implementas tus métodos | |
public function crearBd() | |
{ | |
//implementa tu metodo | |
} | |
} | |
class Sql | |
{ | |
public function crearBd(Driver $motor) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment