get all traits of ancestor classes & ancestor traits

useful when using setters in traits
For perfect PSR-2 compliance, missing a space in the  `while (...)` statement.