original_string: protected function setAliases(array $routes)
      {
          foreach ($routes as $command => $route) {
  
              if (!isset($route['alias'])) {
                  continue;
              }
  
              if (isset($this->aliases[$route['alias']])) {
                  throw new OverflowException("Command alias '{$route['alias']}' is not unique");
              }
  
              $this->aliases[$route['alias']] = $command;
          }
      }
code: protected function setAliases(array $routes)
      {
          foreach ($routes as $command => $route) {
  
              if (!isset($route['alias'])) {
                  continue;
              }
  
              if (isset($this->aliases[$route['alias']])) {
                  throw new OverflowException("Command alias '{$route['alias']}' is not unique");
              }
  
              $this->aliases[$route['alias']] = $command;
          }
      }
code_tokens: protected function setAliases ( array $ routes ) { foreach ( $ routes as $ command => $ route ) { if ( ! isset ( $ route [ 'alias' ] ) ) { continue ; } if ( isset ( $ this -> aliases [ $ route [ 'alias' ] ] ) ) { throw new OverflowException ( "Command alias '{$route['alias']}' is not unique" ) ; } $ this -> aliases [ $ route [ 'alias' ] ] = $ command ; } }
docstring: Sets an array of commands keyed by their aliases
  @param array $routes
  @throws OverflowException
docstring_tokens: Sets an array of commands keyed by their aliases