Completed
Push — master ( cc8ae8...627a43 )
by Zbigniew
02:21
created

AvatarDocument   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 60
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLetters() 0 4 1
A setLetters() 0 6 1
A getColor() 0 4 1
A setColor() 0 6 1
1
<?php
2
/**
3
 * This file is part of the WrikePhpSdk package.
4
 *
5
 * (c) Zbigniew Ślązak
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zibios\WrikePhpSdk\Documents\Components;
12
13
use JMS\Serializer\Annotation as SA;
14
use Zibios\WrikePhpSdk\Documents\ResourceDocumentAbstract;
15
16
/**
17
 * Avatar Document
18
 */
19
class AvatarDocument extends ResourceDocumentAbstract
20
{
21
    /**
22
     * Group letters (2 symbols max), ex. ZS
23
     *
24
     * @SA\Type("string")
25
     * @SA\SerializedName("letters")
26
     * @var string|null
27
     */
28
    protected $letters;
29
30
    /**
31
     * Hex color code, ex. #fe73a1
32
     *
33
     * @SA\Type("string")
34
     * @SA\SerializedName("color")
35
     * @var string|null
36
     */
37
    protected $color;
38
39
    /**
40
     * @return null|string
41
     */
42 1
    public function getLetters()
43
    {
44 1
        return $this->letters;
45
    }
46
47
    /**
48
     * @param null|string $letters
49
     *
50
     * @return $this
51
     */
52 1
    public function setLetters($letters)
53
    {
54 1
        $this->letters = $letters;
55
56 1
        return $this;
57
    }
58
59
    /**
60
     * @return null|string
61
     */
62 1
    public function getColor()
63
    {
64 1
        return $this->color;
65
    }
66
67
    /**
68
     * @param null|string $color
69
     *
70
     * @return $this
71
     */
72 1
    public function setColor($color)
73
    {
74 1
        $this->color = $color;
75
76 1
        return $this;
77
    }
78
}
79