Created
February 27, 2014 20:39
-
-
Save lividgreen/9259070 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 | |
/** | |
* @property-read DbConnection $db | |
* @di $db | |
*/ | |
class BlaBla1 { | |
public function doIt() { | |
$this->db->query('SELECT NOW()'); | |
} | |
} | |
class BlaBla2 { | |
/** | |
* @di | |
* @var DbConnection | |
*/ | |
protected $db; | |
public function doIt() { | |
$this->db->query('SELECT NOW()'); | |
} | |
} |
DavertMik
commented
Feb 27, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment