Delegate::setComment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Common\Model;
6
7
class Delegate extends Model
8
{
9
10
    protected $userLogin = null;
11
12
    protected $createdAt = null;
13
14
    protected $comment = null;
15
16
    protected $mappingClasses = [];
17
18
    protected $propNameMap = [
19
        'user_login' => 'userLogin',
20
        'created_at' => 'createdAt'
21
    ];
22
23
    /**
24
     * Retrieve the userLogin property
25
     *
26
     * @return string|null
27
     */
28 4
    public function getUserLogin()
29
    {
30 4
        return $this->userLogin;
31
    }
32
33
    /**
34
     * Set the userLogin property
35
     *
36
     * @param string $userLogin
37
     * @return $this
38
     */
39 1
    public function setUserLogin($userLogin)
40
    {
41 1
        $this->userLogin = $userLogin;
42 1
        return $this;
43
    }
44
45
    /**
46
     * Retrieve the createdAt property
47
     *
48
     * @return string|null
49
     */
50 4
    public function getCreatedAt()
51
    {
52 4
        return $this->createdAt;
53
    }
54
55
    /**
56
     * Set the createdAt property
57
     *
58
     * @param string $createdAt
59
     * @return $this
60
     */
61 1
    public function setCreatedAt($createdAt)
62
    {
63 1
        $this->createdAt = $createdAt;
64 1
        return $this;
65
    }
66
67
    /**
68
     * Retrieve the comment property
69
     *
70
     * @return string|null
71
     */
72 4
    public function getComment()
73
    {
74 4
        return $this->comment;
75
    }
76
77
    /**
78
     * Set the comment property
79
     *
80
     * @param string $comment
81
     * @return $this
82
     */
83 1
    public function setComment($comment)
84
    {
85 1
        $this->comment = $comment;
86 1
        return $this;
87
    }
88
}
89