User::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/*
4
 * This is part of the webuni/srazy-api-client.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\Srazy\Model;
14
15
class User
16
{
17
    private $uri;
18
19
    private $name;
20
21
    private $avatar;
22
23
    public function __construct($name = null, $uri = null)
24
    {
25
        $this->name = $name;
26
        $this->uri = $uri;
27
    }
28
29
    public function getUri()
30
    {
31
        return $this->uri;
32
    }
33
34
    public function setUri($uri)
35
    {
36
        $this->uri = $uri;
37
    }
38
39
    public function getName()
40
    {
41
        return $this->name;
42
    }
43
44
    public function setName($name)
45
    {
46
        $this->name = $name;
47
    }
48
49
    public function getAvatar()
50
    {
51
        return $this->avatar;
52
    }
53
54
    public function setAvatar($avatar)
55
    {
56
        $this->avatar = $avatar;
57
    }
58
}
59