Completed
Push — master ( 16ab07...d7e831 )
by Rémi
02:38
created

ThirdPartyAccountReplaced   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 29
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getThirdPartyUser() 0 4 1
1
<?php
2
3
namespace MessageApp\Event;
4
5
use League\Event\Event;
6
use MessageApp\User\ThirdParty\User;
7
8
class ThirdPartyAccountReplaced extends Event
9
{
10
    /**
11
     * @var string
12
     */
13
    const NAME = 'user.3rd-party.replaced';
14
15
    /** @var User */
16
    private $thirdPartyUser;
17
18
    /**
19
     * ThirdPartyAccountLinked constructor.
20
     *
21
     * @param User $thirdPartyUser
22
     */
23
    public function __construct(User $thirdPartyUser)
24
    {
25
        parent::__construct(self::NAME);
26
        $this->thirdPartyUser = $thirdPartyUser;
27
    }
28
29
    /**
30
     * @return User
31
     */
32
    public function getThirdPartyUser()
33
    {
34
        return $this->thirdPartyUser;
35
    }
36
}
37