# ConfigureRoute

class ConfigureRoute

## Methods

`public` | `` | `__construct($route)` | No description |
`public` | `` | `name($name)` | No description |
`public` | `` | `middleware()` | No description |

## Details

at line 7

### `__construct()`

`public __construct($route)`

#### Parameters

| `$route` |

at line 16

### `name()`

`public name($name)`

#### Parameters

| `$name` |

at line 24

### `middleware()`

`public middleware()`

## Source code

    <?php

    	namespace App\Khan\Component\Router\Router;

    	class ConfigureRoute {

    		public function __construct($route){

    		    $scope = Router::create();
    		    $this->route = $route;
    		    $scope->setRouterConfig($route);
    		    return $this;

    		}

    		public function name($name){
    		    $scope = Router::create();
    		    $this->name = $name;
    		    $scope->setRouterName($name, $this->route);
    		    $scope->setRouterConfigKey($this->route, 'name', $name);
    		    return $this;
    		}

    		public function middleware(){
    		    $scope = Router::create();
    		    $this->middleware = func_get_args();
    		    $scope->setRouterConfigKey($this->route, 'middleware', func_get_args());
    		    return $this;
    		}

          }