for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cervo package.
*
* Copyright (c) 2010-2019 Nevraxe inc. & Marc André Audet <[email protected]>.
* @package Cervo
* @author Marc André Audet <[email protected]>
* @copyright 2010 - 2019 Nevraxe inc. & Marc André Audet
* @license See LICENSE.md MIT
* @link https://github.com/Nevraxe/Cervo
* @since 5.0.0
*/
declare(strict_types=1);
namespace Cervo;
* Route for Cervo.
class Route
{
/** @var string The controller class */
private $controllerClass;
/** @var array The parameters to pass */
private $parameters = [];
/** @var array The arguments to pass */
private $arguments = [];
public function __construct(string $controllerClass, array $parameters = [], array $arguments = [])
$this->controllerClass = $controllerClass;
$this->parameters = $parameters;
$this->arguments = $arguments;
}
public function getControllerClass(): string
return $this->controllerClass;
public function getParameters(): array
return $this->parameters;
public function getArguments(): array
return $this->arguments;