Last active
December 19, 2015 01:09
-
-
Save andersonfraga/5873802 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 Teste { | |
public $outro; | |
function __construct($outraclasse) { | |
$this->outro = $outraclasse; | |
} | |
} | |
class Loader { | |
function helper() { | |
echo 'opa!'; | |
} | |
} | |
$loader = new Loader(); | |
$novo = new Teste($loader); | |
$novo->outro->helper(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment