ResponseParameters   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
ccs 0
cts 8
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getParameters() 0 4 1
A getResponse() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Symfony-Util package.
5
 *
6
 * (c) Jean-Bernard Addor
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace SymfonyUtil\Component\HttpFoundation;
13
14
use Symfony\Component\HttpFoundation\Response;
15
16
class ResponseParameters implements ResponseParametersInterface
17
{
18
    protected $parameters;
19
    protected $response;
20
21
    public function __construct(array $parameters, Response $response = null)
22
    {
23
        $this->parameters = $parameters;
24
        $this->response = $response;
25
    }
26
27
    public function getParameters()
28
    {
29
        return $this->parameters; // array
30
    }
31
32
    public function getResponse()
33
    {
34
        return $this->response; // Response or null
35
    }
36
}
37