src/Traits/ReflectionClassLikeTrait.php
public function getTraits()
    {
        if (!isset($this->traits)) {
            $traitAdaptations = [];
            $this->traits     = ReflectionClass::collectTraitsFromClassNode($this->classLikeNode, $traitAdaptations);
            $this->traitAdaptations = $traitAdaptations;
        }

        return $this->traits;
    }
public function getTraits()
    {
        if (!isset($this->traits)) {
            $traitAdaptations = [];
            $this->traits     = ReflectionClass::collectTraitsFromClassNode($this->classLikeNode, $traitAdaptations);
            $this->traitAdaptations = $traitAdaptations;
        }

        return $this->traits;
    }
public function getTraits ( ) { if ( ! isset ( $ this -> traits ) ) { $ traitAdaptations = [ ] ; $ this -> traits = ReflectionClass :: collectTraitsFromClassNode ( $ this -> classLikeNode , $ traitAdaptations ) ; $ this -> traitAdaptations = $ traitAdaptations ; } return $ this -> traits ; }
Returns an array of traits used by this class

@link http://php.net/manual/en/reflectionclass.gettraits.php

@return array|\ReflectionClass[]
Returns an array of traits used by this class