Completed
Push — master ( bbb280...6190d5 )
by Rémi
02:52
created

UndefinedParsingUser::getAccount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace MessageApp\Parser;
4
5
use MessageApp\User\ApplicationUserId;
6
use MessageApp\User\ThirdParty\Account;
7
8
class UndefinedParsingUser implements ParsingUser
9
{
10
    /**
11
     * @var Account
12
     */
13
    protected $account;
14
15
    /**
16
     * Constructor
17
     *
18
     * @param Account $account
19
     */
20 3
    public function __construct(Account $account)
21
    {
22 3
        $this->account = $account;
23 3
    }
24
25
    /**
26
     * Returns the id
27
     *
28
     * @return ApplicationUserId
29
     */
30 3
    public function getId()
31
    {
32 3
        return null;
33
    }
34
35
    /**
36
     * Returns the name
37
     *
38
     * @return string
39
     */
40 3
    public function getName()
41
    {
42 3
        return null;
43
    }
44
45
    /**
46
     * Returns the preferred language
47
     *
48
     * @return string
49
     */
50 3
    public function getPreferredLanguage()
51
    {
52 3
        return 'en';
53
    }
54
55
    /**
56
     * Get the account
57
     *
58
     * @return Account
59
     */
60 3
    public function getAccount()
61
    {
62 3
        return $this->account;
63
    }
64
65
    /**
66
     * Is the user defined
67
     *
68
     * @return boolean
69
     */
70 3
    public function isDefined()
71
    {
72 3
        return false;
73
    }
74
}
75