note 111361 rejected from language.oop5.traits by tularis
| From: | tularis@php.net | Date: | Mon, 11 Feb 2013 23:35:57 +0000 |
| Subject: | note 111361 rejected from language.oop5.traits by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193608@lists.php.net to get a copy of this message | ||
Note Submitter: ivan at ditz dot me
----
Can traits be used like this:
trait trait1{
myfunction() { return true; }
}
trait trait2 {
function() {
use trait1;
myfunction();
}
?