src/Traits/ReflectionClassLikeTrait.php
public function getTraitAliases()
    {
        $aliases = [];
        $traits  = $this->getTraits();
        foreach ($this->traitAdaptations as $adaptation) {
            if ($adaptation instanceof TraitUseAdaptation\Alias) {
                $methodName = $adaptation->method;
                $traitName  = null;
                foreach ($traits as $trait) {
                    if ($trait->hasMethod($methodName)) {
                        $traitName = $trait->getName();
                        break;
                    }
                }
                $aliases[$adaptation->newName] = $traitName . '::'. $methodName;
            }
        }

        return $aliases;
    }
public function getTraitAliases()
    {
        $aliases = [];
        $traits  = $this->getTraits();
        foreach ($this->traitAdaptations as $adaptation) {
            if ($adaptation instanceof TraitUseAdaptation\Alias) {
                $methodName = $adaptation->method;
                $traitName  = null;
                foreach ($traits as $trait) {
                    if ($trait->hasMethod($methodName)) {
                        $traitName = $trait->getName();
                        break;
                    }
                }
                $aliases[$adaptation->newName] = $traitName . '::'. $methodName;
            }
        }

        return $aliases;
    }
public function getTraitAliases ( ) { $ aliases = [ ] ; $ traits = $ this -> getTraits ( ) ; foreach ( $ this -> traitAdaptations as $ adaptation ) { if ( $ adaptation instanceof TraitUseAdaptation \ Alias ) { $ methodName = $ adaptation -> method ; $ traitName = null ; foreach ( $ traits as $ trait ) { if ( $ trait -> hasMethod ( $ methodName ) ) { $ traitName = $ trait -> getName ( ) ; break ; } } $ aliases [ $ adaptation -> newName ] = $ traitName . '::' . $ methodName ; } } return $ aliases ; }
Returns an array of trait aliases

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

@return array|null an array with new method names in keys and original names (in the format "TraitName::original") in
values.
Returns an array of trait aliases