A modest collection of PHP libraries used at SparkFun.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
382 B

<?php
namespace SparkLib\Application;
/**
* Model components of a route. See SparkLib\Application.
*/
class Route {
protected $_route = array();
public function __construct (array $route)
{
$this->_route = $route;
}
public function __get ($component)
{
if (isset($this->_route[$component]))
return $this->_route[$component];
return false;
}
}