Failed Conditions
Push — issue#702 ( 91bd46...0b5bf0 )
by Guilherme
19:37 queued 12:15
created

UpdateRemoteClaimUriEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getClaimName() 0 3 1
A getNewUri() 0 3 1
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace LoginCidadao\RemoteClaimsBundle\Event;
12
13
use LoginCidadao\RemoteClaimsBundle\Model\TagUri;
14
use Symfony\Component\EventDispatcher\Event;
15
16
class UpdateRemoteClaimUriEvent extends Event
17
{
18
    /**
19
     * @var TagUri
20
     */
21
    private $claimName;
22
23
    /**
24
     * @var string
25
     */
26
    private $newUri;
27
28
    /**
29
     * UpdateRemoteClaimUriEvent constructor.
30
     * @param TagUri $claimName
31
     * @param string $newUri
32
     */
33 3
    public function __construct(TagUri $claimName, $newUri)
34
    {
35 3
        $this->claimName = $claimName;
36 3
        $this->newUri = $newUri;
37 3
    }
38
39
    /**
40
     * @return TagUri
41
     */
42 2
    public function getClaimName()
43
    {
44 2
        return $this->claimName;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 2
    public function getNewUri()
51
    {
52 2
        return $this->newUri;
53
    }
54
}
55