for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.0
*/
namespace Quantum\Router;
* RouterController Class
* @package Quantum\Router
abstract class RouteController
{
* Contains current route information
* @var array
protected static $currentRoute = null;
* Gets the current route
* @return array
public static function getCurrentRoute(): ?array
return self::$currentRoute;
}
* @param array $route
public static function setCurrentRoute(array $route)
self::$currentRoute = $route;
* Set Routes
* @param array $routes
public static function setRoutes(array $routes)
static::$routes = $routes;
routes
* Get Routes
public static function getRoutes(): array
return static::$routes;