Created
December 21, 2018 03:31
-
-
Save vahid-almasi/ace359ae4ce7298ee722b9f1b978c9f5 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
<? | |
class MySQLConnection implements DBConnectionInterface { | |
public function connect() { | |
return "Database connection"; | |
} | |
} | |
class PasswordReminder { | |
private $dbConnection; | |
public function __construct(DBConnectionInterface $dbConnection) { | |
$this->dbConnection = $dbConnection; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment