mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
59 lines
946 B
PHP
59 lines
946 B
PHP
<?php
|
|
|
|
namespace Routing;
|
|
|
|
class RouteData
|
|
{
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $variableRoutes;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $staticRoutes;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $filters;
|
|
|
|
/**
|
|
* @param array $staticRoutes
|
|
* @param array $variableRoutes
|
|
* @param array $filters
|
|
*/
|
|
public function __construct(array $staticRoutes, array $variableRoutes, array $filters)
|
|
{
|
|
$this->staticRoutes = $staticRoutes;
|
|
|
|
$this->variableRoutes = $variableRoutes;
|
|
|
|
$this->filters = $filters;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getStaticRoutes()
|
|
{
|
|
return $this->staticRoutes;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getVariableRoutes()
|
|
{
|
|
return $this->variableRoutes;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getFilters()
|
|
{
|
|
return $this->filters;
|
|
}
|
|
}
|