original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Register magic method alias
  
  @param string $trait
  @param \ReflectionMethod $method
  
  @return void
docstring_tokens: Register magic method alias