for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Factory which builds routes
*
* PHP version 5.5
* @category OpCacheGUI
* @package Network
* @author Pieter Hordijk <[email protected]>
* @copyright Copyright (c) 2014 Pieter Hordijk <https://github.com/PeeHaa>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0
*/
namespace OpCacheGUI\Network;
class RouteFactory implements RouteBuilder
{
* Creates the new route
* @param string $identifier The identifier of this route
* @param string $verb The verb of this route
* @param callable $callback The callback to execute when this route matches
* @return \OpCacheGUI\Network\Route
public function build($identifier, $verb, callable $callback)
return new Route($identifier, $verb, $callback);
}