Failed Conditions
Pull Request — experimental/sf (#3225)
by Kentaro
50:47 queued 42:12
created

PaymentDispatcher::getQueryParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Service\Payment;
15
16
use Symfony\Component\HttpFoundation\Response;
17
18
class PaymentDispatcher
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
19
{
20
    /**
21
     * @var Response
22
     */
23
    private $response;
24
25
    /**
26
     * @var boolean
27
     */
28
    private $forward;
29
30
    /**
31
     * @var string
32
     */
33
    private $route;
34
35
    /**
36
     * @var array
37
     */
38
    private $pathParameters = [];
39
40
    /**
41
     * @var array
42
     */
43
    private $queryParameters = [];
44
45
    public function isForward()
46
    {
47
        return $this->forward;
48
    }
49
50
    public function setForward($forward)
51
    {
52
        $this->forward = $forward;
53
    }
54
55
    public function getRoute()
56
    {
57
        return $this->route;
58
    }
59
60
    public function setRoute($route)
61
    {
62
        $this->route = $route;
63
64
        return $this;
65
    }
66
67
    public function getQueryParameters()
68
    {
69
        return $this->queryParameters;
70
    }
71
72
    public function setQueryParameters(array $queryParameters)
73
    {
74
        $this->queryParameters = $queryParameters;
75
76
        return $this;
77
    }
78
79
    public function getPathParameters()
80
    {
81
        return $this->pathParameters;
82
    }
83
84
    public function setPathParameters(array $pathParameters)
85
    {
86
        $this->pathParameters = $pathParameters;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @param Response $response
93
     *
94
     * @return PaymentResult
95
     */
96
    public function setResponse(Response $response)
97
    {
98
        $this->response = $response;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return Response
105
     */
106
    public function getResponse()
107
    {
108
        return $this->response;
109
    }
110
}
111