protected function registerTraitMethod($trait, \ReflectionMethod $method)
    {
        $name = $method->getName();
        $this->_method[$name] = $method;

        $alias = '__' . lcfirst($trait) . ucfirst($name);
        $this->addTraitAlias($trait . '::' . $name, $alias);
        $this->addTraitMethod($trait, $name);

        if (!isset($this->_traitMethodsAliases[$name])) {
            $this->_traitMethodsAliases[$name] = [];
        }
        $this->_traitMethodsAliases[$name][] = $alias;
    }
protected function registerTraitMethod($trait, \ReflectionMethod $method)
    {
        $name = $method->getName();
        $this->_method[$name] = $method;

        $alias = '__' . lcfirst($trait) . ucfirst($name);
        $this->addTraitAlias($trait . '::' . $name, $alias);
        $this->addTraitMethod($trait, $name);

        if (!isset($this->_traitMethodsAliases[$name])) {
            $this->_traitMethodsAliases[$name] = [];
        }
        $this->_traitMethodsAliases[$name][] = $alias;
    }
protected function registerTraitMethod ( $ trait , \ ReflectionMethod $ method ) { $ name = $ method -> getName ( ) ; $ this -> _method [ $ name ] = $ method ; $ alias = '__' . lcfirst ( $ trait ) . ucfirst ( $ name ) ; $ this -> addTraitAlias ( $ trait . '::' . $ name , $ alias ) ; $ this -> addTraitMethod ( $ trait , $ name ) ; if ( ! isset ( $ this -> _traitMethodsAliases [ $ name ] ) ) { $ this -> _traitMethodsAliases [ $ name ] = [ ] ; } $ this -> _traitMethodsAliases [ $ name ] [ ] = $ alias ; }
Register magic method alias

@param string $trait
@param \ReflectionMethod $method

@return void
Register magic method alias