protected function collectAllTraits()
    {
        if ($this->_allTraits === null) {
            $this->_allTraits = Type::traits($this, true);
            unset($this->_allTraits[TraitMethods::class]); // exclude this trait
        }
        return $this->_allTraits;
    }
protected function collectAllTraits()
    {
        if ($this->_allTraits === null) {
            $this->_allTraits = Type::traits($this, true);
            unset($this->_allTraits[TraitMethods::class]); // exclude this trait
        }
        return $this->_allTraits;
    }
protected function collectAllTraits ( ) { if ( $ this -> _allTraits === null ) { $ this -> _allTraits = Type :: traits ( $ this , true ) ; unset ( $ this -> _allTraits [ TraitMethods :: class ] ) ; // exclude this trait } return $ this -> _allTraits ; }
Collect all traits that should be called.

@return array
Collect all traits that should be called .