Completed
Push — master ( dacaa0...701f1f )
by Vítor
02:08
created

Route::getAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
4
 *
5
 * @license http://www.opensource.org/licenses/mit-license.html MIT License
6
 * @copyright 2016 Vítor Brandão <[email protected]>
7
 */
8
9
namespace Noiselabs\ZfDebugModule\Util\Routing;
10
11
class Route
12
{
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var string
20
     */
21
    private $url;
22
23
    /**
24
     * @var string
25
     */
26
    private $controller;
27
    /**
28
     * @var string
29
     */
30
    private $action;
31
32
    /**
33
     * @param string $name
34
     * @param $url
35
     * @param string $controller
36
     * @param string $action
37
     */
38
    public function __construct($name, $url, $controller, $action)
39
    {
40
        $this->name = $name;
41
        $this->url = $url;
42
        $this->controller = $controller;
43
        $this->action = $action;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getName()
50
    {
51
        return $this->name;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getUrl()
58
    {
59
        return $this->url;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getController()
66
    {
67
        return $this->controller;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getAction()
74
    {
75
        return $this->action;
76
    }
77
}
78