GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Account::isValid()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 0
1
<?php
2
namespace Checkdomain\Comodo\Model;
3
4
/**
5
 * Class Account
6
 * Provides the login username and password to comodo
7
 */
8
class Account
9
{
10
    private $loginName;
11
    private $loginPassword;
12
13
    /**
14
     * @param string|null $loginName
15
     * @param string|null $loginPassword
16
     */
17
    public function __construct($loginName = null, $loginPassword = null)
18
    {
19
        $this->setLoginName($loginName);
20
        $this->setLoginPassword($loginPassword);
21
    }
22
23
    /**
24
     * @param string $loginName
25
     *
26
     * @return Account
27
     */
28
    public function setLoginName($loginName)
29
    {
30
        $this->loginName = $loginName;
31
32
        return $this;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getLoginName()
39
    {
40
        return $this->loginName;
41
    }
42
43
    /**
44
     * @param string $loginPassword
45
     *
46
     * @return Account
47
     */
48
    public function setLoginPassword($loginPassword)
49
    {
50
        $this->loginPassword = $loginPassword;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getLoginPassword()
59
    {
60
        return $this->loginPassword;
61
    }
62
63
    /**
64
     * @return bool
65
     */
66
    public function isValid()
67
    {
68
        if ($this->getLoginName() === null || $this->getLoginPassword() === null) {
69
            return false;
70
        }
71
72
        return true;
73
    }
74
}
75