I have an array that has my traits:
$traits = [
'app\traits\TraitNumOne',
'app\traits\TraitNumTwo',
];
is there any way to use that traits in my class dinamically?
class MyClass {
use $traits[0],$traits[1]; // something like this :)
}
I haven't any idea to solve this, please help