note 112781 added to language.oop5.traits
| From: | contatoatwilliamsantanadotcomdotbr | Date: | Mon, 22 Jul 2013 15:26:20 +0000 |
| Subject: | note 112781 added to language.oop5.traits | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195716@lists.php.net to get a copy of this message | ||
Please note that a trait cannot extend a class. Traits can only contain another traits by using
'use' keyword. Things like
<?php
trait DetailedException extends Exception {}
?>
will not work. Be careful.
Cheers.
----
Server IP: 69.147.83.199
Probable Submitter: 177.43.119.65
----
Manual Page -- http://php.net/manual/en/language.oop5.traits.php
Edit -- https://master.php.net/note/edit/112781
Del: integrated -- https://master.php.net/note/delete/112781/integrated
Del: useless -- https://master.php.net/note/delete/112781/useless
Del: bad code -- https://master.php.net/note/delete/112781/bad+code
Del: spam -- https://master.php.net/note/delete/112781/spam
Del: non-english -- https://master.php.net/note/delete/112781/non-english
Del: in docs -- https://master.php.net/note/delete/112781/in+docs
Del: other reasons-- https://master.php.net/note/delete/112781
Reject -- https://master.php.net/note/reject/112781
Search -- https://master.php.net/manage/user-notes.php