Completed
Push — update-travis ( 67cde9...6f3c47 )
by Kevin
07:18 queued 03:01
created

Forward::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
ccs 3
cts 4
cp 0.75
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
crap 1.0156
1
<?php
2
3
namespace Zenstruck\ControllerUtil;
4
5
/**
6
 * @author Kevin Bond <[email protected]>
7
 */
8
class Forward
9
{
10
    private $controller;
11
    private $parameters;
12
13
    /**
14
     * @param string $controller
15
     * @param array  $parameters
16
     */
17 2
    public function __construct($controller, array $parameters = array())
18
    {
19 2
        $this->controller = $controller;
20 2
        $this->parameters = $parameters;
21
    }
22
23
    /**
24
     * @return string
25
     */
26 2
    public function getController()
27
    {
28 2
        return $this->controller;
29
    }
30
31
    /**
32
     * @return array
33
     */
34 2
    public function getParameters()
35
    {
36 2
        return $this->parameters;
37
    }
38
}
39