for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace nebula\route;
/**
* 可执行命令表达式
*
*/
class RouteMatcher {
* 匹配的URI
* @var string
protected $uri;
* 匹配的方法
protected $methods;
* 属性
* @var array
protected $attribute;
* Get 属性
* @return array
public function getAttribute()
{
return $this->attribute;
}
* Set 属性
* @param array $attribute 属性
* @return self
public function setAttribute(array $attribute)
$this->attribute = $attribute;
return $this;
* Get 匹配的方法
* @return string
public function getMethods()
return $this->methods;
* Set 匹配的方法
* @param string $methods 匹配的方法
public function setMethods(string $methods)
$this->methods = $methods;
* Get 匹配的URI
public function getUri()
return $this->uri;
* Set 匹配的URI
* @param string $uri 匹配的URI
public function setUri(string $uri)
$this->uri = $uri;