Last active
May 23, 2018 04:27
-
-
Save nahidulhasan/f8e9a122ab36098015b1f822b7f5fac9 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 | |
class MySQLConnection | |
{ | |
/** | |
* db connection | |
*/ | |
public function connect() | |
{ | |
var_dump('MYSQL Connection'); | |
} | |
} | |
class PasswordReminder | |
{ | |
/** | |
* @var MySQLConnection | |
*/ | |
private $dbConnection; | |
public function __construct(MySQLConnection $dbConnection) | |
{ | |
$this->dbConnection = $dbConnection; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment