Completed
Push — master ( bbab67...a6170e )
by Rémi
02:56
created

UndefinedParsingUser   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 67
rs 10

6 Methods

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