1 | <?php |
||
10 | class Collection extends \Illuminate\Support\Collection |
||
11 | { |
||
12 | public function __construct(RouteCollection $routes, $filter, $namespace) |
||
16 | |||
17 | /** |
||
18 | * Parse the routes into a jsonable output. |
||
19 | * |
||
20 | * @param RouteCollection $routes |
||
21 | * @param string $filter |
||
22 | * @param string $namespace |
||
23 | * |
||
24 | * @return array |
||
25 | * @throws ZeroRoutesException |
||
26 | */ |
||
27 | protected function parseRoutes(RouteCollection $routes, $filter, $namespace) |
||
37 | |||
38 | /** |
||
39 | * Throw an exception if there aren't any routes to process. |
||
40 | * |
||
41 | * @param RouteCollection $routes |
||
42 | * |
||
43 | * @throws ZeroRoutesException |
||
44 | */ |
||
45 | protected function guardAgainstZeroRoutes(RouteCollection $routes) |
||
51 | |||
52 | /** |
||
53 | * Get the route information for a given route. |
||
54 | * |
||
55 | * @param $route \Illuminate\Routing\Route |
||
56 | * @param $filter string |
||
57 | * @param $namespace string |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | protected function getRouteInformation(Route $route, $filter, $namespace) |
||
90 | } |
||
91 |