protected function get($method = null)
	{
		if (is_null($method)) return $this->getRoutes();

		return array_get($this->routes, $method, array());
	}
protected function get($method = null)
	{
		if (is_null($method)) return $this->getRoutes();

		return array_get($this->routes, $method, array());
	}
protected function get ( $ method = null ) { if ( is_null ( $ method ) ) return $ this -> getRoutes ( ) ; return array_get ( $ this -> routes , $ method , array ( ) ) ; }
Get all of the routes in the collection.

@param  string|null  $method
@return array
Get all of the routes in the collection .