src/Samurai/Component/Console/Client/Client.php
public function class_uses_deep($class)
    {
        $traits = [];
        do {
            $traits = array_merge($traits, class_uses($class, false));
        } while ($class = get_parent_class($class));
        foreach ($traits as $trait) {
            $traits = array_merge($traits, class_uses($trait, false));
        }
        return array_unique($traits);
    }
public function class_uses_deep($class)
    {
        $traits = [];
        do {
            $traits = array_merge($traits, class_uses($class, false));
        } while ($class = get_parent_class($class));
        foreach ($traits as $trait) {
            $traits = array_merge($traits, class_uses($trait, false));
        }
        return array_unique($traits);
    }
public function class_uses_deep ( $ class ) { $ traits = [ ] ; do { $ traits = array_merge ( $ traits , class_uses ( $ class , false ) ) ; } while ( $ class = get_parent_class ( $ class ) ) ; foreach ( $ traits as $ trait ) { $ traits = array_merge ( $ traits , class_uses ( $ trait , false ) ) ; } return array_unique ( $ traits ) ; }
get use traits deep

@param   string  $class
@return  array
get use traits deep