Failed Conditions
Pull Request — master (#29)
by Yo
04:56 queued 01:32
created

AfterRequestEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 39
rs 10
c 1
b 0
f 0
ccs 0
cts 16
cp 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getResponse() 0 4 1
A setName() 0 4 1
A getName() 0 4 1
1
<?php
2
namespace Yoanm\Behat3SymfonyExtension\Event;
3
4
use Symfony\Component\HttpFoundation\Response;
5
6
class AfterRequestEvent extends Event
7
{
8
    /** @var Response */
9
    private $request;
10
    /** @var string */
11
    private $name;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
12
13
    /**
14
     * @param Response $request
15
     */
16
    public function __construct(Response $request)
17
    {
18
        $this->request = $request;
19
    }
20
21
    /**
22
     * @return Response
23
     */
24
    public function getResponse()
25
    {
26
        return $this->request;
27
    }
28
29
    /**
30
     * @param string $name
31
     */
32
    public function setName($name)
33
    {
34
        $this->name = $name;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
}
45