Open
Description
PHP Docs: https://www.php.net/manual/en/language.oop5.traits.php
- if there is a class member (property/member), then its declaration wins over the declaration from the trait (important for the
bc
command) - multi-trait conflict resolution via
insteadof
keyword (an edge case, but good to have; not sure howReflectionClass
would get me that):
use A, B {
B::smallTalk insteadof A;
}
- trait method/property/constant renames on the fly using
as
keyword (can retrieve viaReflectionClass::getTraitAliases
):
use A, B {
B::bigTalk as talk;
}
- trait method/property/constant visibility change on the fly using
as
keyword (not sure howReflectionClass
would get me that):
use HelloWorld { sayHello as private myPrivateHello; }
Metadata
Metadata
Assignees
Labels
No labels