Strident/Router

View on GitHub
src/RouteFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * This file is part of the Router package.
 *
 * @package Router
 * @since   2015
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Strident\Router;

/**
 * Route Factory
 *
 * @author Elliot Wright
 */
class RouteFactory
{
    /**
     * Build a Route
     *
     * @param string $name
     * @param string $path
     *
     * @return Route
     */
    public function build($name, $path)
    {
        return new Route($name, $path);
    }
}