src/ClassDeclaration.php
public function setTraits(array $traits): ClassDeclaration
    {
        $this->traits = [];
        foreach ($traits as $trait) {
            $this->addTrait($trait);
        }

        return $this;
    }
public function setTraits(array $traits): ClassDeclaration
    {
        $this->traits = [];
        foreach ($traits as $trait) {
            $this->addTrait($trait);
        }

        return $this;
    }
public function setTraits ( array $ traits ) : ClassDeclaration { $ this -> traits = [ ] ; foreach ( $ traits as $ trait ) { $ this -> addTrait ( $ trait ) ; } return $ this ; }
Declare class traits.

@param array $traits

@return self
Declare class traits .