Skip to content

Instantly share code, notes, and snippets.

@vahid-almasi
Created December 21, 2018 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vahid-almasi/ace359ae4ce7298ee722b9f1b978c9f5 to your computer and use it in GitHub Desktop.
Save vahid-almasi/ace359ae4ce7298ee722b9f1b978c9f5 to your computer and use it in GitHub Desktop.
<?
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