Commit 41a96f30 by pupi1985

Remove setters from the Route class

parent 7fc25bec
......@@ -41,7 +41,7 @@ class Route
public function __construct($id = null, $httpMethod = null, $routePath = null, $controller = null, $action = null)
{
$this->id = $id;
$this->setHttpMethod($httpMethod);
$this->httpMethod = strtoupper($httpMethod);
$this->routePath = $routePath;
$this->controller = $controller;
$this->action = $action;
......@@ -68,14 +68,6 @@ class Route
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getHttpMethod()
......@@ -84,14 +76,6 @@ class Route
}
/**
* @param string $httpMethod
*/
public function setHttpMethod($httpMethod)
{
$this->httpMethod = strtoupper($httpMethod);
}
/**
* @return string
*/
public function getRoutePath()
......@@ -100,14 +84,6 @@ class Route
}
/**
* @param string $routePath
*/
public function setRoutePath($routePath)
{
$this->routePath = $routePath;
}
/**
* @return string
*/
public function getController()
......@@ -116,14 +92,6 @@ class Route
}
/**
* @param string $controller
*/
public function setController($controller)
{
$this->controller = $controller;
}
/**
* @return string
*/
public function getAction()
......@@ -132,14 +100,6 @@ class Route
}
/**
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return array
*/
public function getParameters()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment