Test Failed
Push — master ( 156c37...627d8f )
by Zbigniew
03:20
created

ColorResourceModel::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Color;
13
14
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
15
16
/**
17
 * Color Resource Model.
18
 */
19
class ColorResourceModel implements ResourceModelInterface
20
{
21
    /**
22
     * Color name.
23
     *
24
     * @SA\Type("string")
25
     * @SA\SerializedName("name")
26
     *
27
     * @var string|null
28
     */
29
    protected $name;
30
31
    /**
32
     * HEX code.
33
     *
34
     * @SA\Type("string")
35
     * @SA\SerializedName("hex")
36
     *
37
     * @var string|null
38
     */
39
    protected $hex;
40
41
    /**
42
     * @return null|string
43
     */
44 1
    public function getName()
45
    {
46 1
        return $this->name;
47
    }
48
49
    /**
50
     * @param null|string $name
51
     *
52
     * @return $this
53
     */
54 1
    public function setName($name)
55
    {
56 1
        $this->name = $name;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return null|string
63
     */
64 1
    public function getHex()
65
    {
66 1
        return $this->hex;
67
    }
68
69
    /**
70
     * @param null|string $hex
71
     *
72
     * @return $this
73
     */
74 1
    public function setHex($hex)
75
    {
76 1
        $this->hex = $hex;
77
78 1
        return $this;
79
    }
80
}
81