Twitter::setPassword()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Magium\Twitter\Identities;
4
5
use Magium\AbstractConfigurableElement;
6
7
class Twitter extends AbstractConfigurableElement
8
{
9
    const IDENTITY = 'Magium\Twitter\Identities\Twitter';
10
11
    public $username = 'nobody';
12
    public $password = 'nopassword';
13
14
    /**
15
     * @return string
16
     */
17
    public function getPassword()
18
    {
19
        return $this->password;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getUsername()
26
    {
27
        return $this->username;
28
    }
29
30
    /**
31
     * @param string $password
32
     */
33
    public function setPassword($password)
34
    {
35
        $this->password = $password;
36
    }
37
38
    /**
39
     * @param string $username
40
     */
41
    public function setUsername($username)
42
    {
43
        $this->username = $username;
44
    }
45
46
    
47
48
}