GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Target   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 73
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setAction() 0 4 1
A setParams() 0 4 1
A getAction() 0 4 1
A getController() 0 4 1
A getParams() 0 4 1
1
<?php
2
/**
3
 * Pimf
4
 *
5
 * @copyright Copyright (c)  Gjero Krsteski (http://krsteski.de)
6
 * @license   http://opensource.org/licenses/MIT MIT License
7
 */
8
9
namespace Pimf\Route;
10
11
/**
12
 * Target
13
 *
14
 * The route-target class defines which prefixes get imported
15
 * and exported on the Pimf request-resolver and controller.
16
 *
17
 * @package Route
18
 * @author  Gjero Krsteski <[email protected]>
19
 */
20
class Target
21
{
22
    /**
23
     * Controller name as it appears in url
24
     *
25
     * @var string
26
     */
27
    protected $controller;
28
29
    /**
30
     * Controller action name as it appears in url
31
     *
32
     * @var string
33
     */
34
    protected $action = 'index';
35
36
    /**
37
     * List of additional params at teh URL.
38
     *
39
     * @var array
40
     */
41
    protected $params = array();
42
43
    /**
44
     * @param string $controller
45
     */
46
    public function __construct($controller)
47
    {
48
        $this->controller = $controller;
49
    }
50
51
    /**
52
     * @param string $action
53
     */
54
    public function setAction($action)
55
    {
56
        $this->action = $action;
57
    }
58
59
    /**
60
     * @param array $params
61
     */
62
    public function setParams(array $params)
63
    {
64
        $this->params = $params;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getAction()
71
    {
72
        return $this->action;
73
    }
74
75
    /**
76
     * Controller-name as it appears in url.
77
     *
78
     * @return string
79
     */
80
    public function getController()
81
    {
82
        return $this->controller;
83
    }
84
85
    /**
86
     * @return array
87
     */
88
    public function getParams()
89
    {
90
        return $this->params;
91
    }
92
}
93