Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
41a96f30
Commit
41a96f30
authored
Dec 30, 2017
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove setters from the Route class
parent
7fc25bec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
41 deletions
+1
-41
Route.php
qa-src/Http/Routing/Route.php
+1
-41
No files found.
qa-src/Http/Routing/Route.php
View file @
41a96f30
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment