v.0.1
This commit is contained in:
57
vendor/craft-group/phroute/src/Phroute/RouteDataArray.php
vendored
Normal file
57
vendor/craft-group/phroute/src/Phroute/RouteDataArray.php
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
<?php namespace Phroute\Phroute;
|
||||
|
||||
class RouteDataArray implements RouteDataInterface {
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user