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

ThirdPartyAccountReplaced::getThirdPartyUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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