Completed
Push — master ( 0dd019...03ce40 )
by Burhan
04:22
created

EntitySettingsById   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 63
ccs 6
cts 14
cp 0.4286
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 3 1
A getValue() 0 3 1
A setSaveToFile() 0 3 1
A getSaveToFile() 0 3 1
A setValue() 0 3 1
A getId() 0 3 1
1
<?php
2
/**
3
 * This file is part of graze/unicontroller-client.
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md
11
 * @link https://github.com/graze/unicontroller-client
12
 */
13
namespace Graze\UnicontrollerClient\Entity\Entity;
14
15
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface;
16
17
class EntitySettingsById implements EntityInterface
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $id;
23
24
    /**
25
     * @var int
26
     */
27
    protected $value;
28
29
    /**
30
     * @var int
31
     */
32
    protected $saveToFile;
33
34
    /**
35
     * @return int
36
     */
37 2
    public function getId()
38
    {
39 2
        return $this->id;
40
    }
41
42
    /**
43
     * @param int $id
44
     */
45
    public function setId($id)
46
    {
47
        $this->id = $id;
48
    }
49
50
    /**
51
     * @return int
52
     */
53 2
    public function getValue()
54
    {
55 2
        return $this->value;
56
    }
57
58
    /**
59
     * @param int $value
60
     */
61
    public function setValue($value)
62
    {
63
        $this->value = $value;
64
    }
65
66
    /**
67
     * @return int
68
     */
69 2
    public function getSaveToFile()
70
    {
71 2
        return $this->saveToFile;
72
    }
73
74
    /**
75
     * @param int $saveToFile
76
     */
77
    public function setSaveToFile($saveToFile)
78
    {
79
        $this->saveToFile = $saveToFile;
80
    }
81
}
82