Created
January 24, 2014 12:32
-
-
Save xboston/8596433 to your computer and use it in GitHub Desktop.
Trait test
This file contains hidden or 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 fuck | |
*/ | |
trait fuck | |
{ | |
public function test() | |
{ | |
echo 'trait'; | |
} | |
} | |
/** | |
* Class you | |
*/ | |
class you | |
{ | |
use fuck; | |
public function test() | |
{ | |
echo 'class'; | |
} | |
} | |
$message = new you(); | |
$message->test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment