ControlPanelConfig::setNodeServer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Satis\Model;
4
5
use JMS\Serializer\Annotation\Type;
6
7
/**
8
 * Archive Configuration class
9
 *
10
 * Represent the archive part, in a satis configuration file
11
 *
12
 * @author Lukas Homza <[email protected]>
13
 */
14
class ControlPanelConfig {
15
    /**
16
     * @Type("boolean")
17
     */
18
    private $loaded;
19
20
    /**
21
     * @Type("App\Satis\Model\Config")
22
     */
23
    private $config;
24
25
    /**
26
     * @Type("string")
27
     */
28
    private $message;
29
    
30
    /**
31
     * @Type("boolean")
32
     */
33
    private $locked;
34
35
    /**
36
     * @Type("array")
37
     */
38
    private $repository_types;
39
40
    /**
41
     * @Type("array")
42
     */
43
    private $node_server;
44
45
    /**
46
     * @param $loaded
47
     * @return $this
48
     */
49
    public function isLoaded($loaded) {
50
        $this->loaded = $loaded;
51
52
        return $this;
53
    }
54
    
55
    /**
56
     * @param $locked
57
     * @return $this
58
     */
59
    public function isLocked($locked) {
60
        $this->locked = $locked;
61
62
        return $this;
63
    }    
64
65
    /**
66
     * @param \App\Satis\Model\Config $config
67
     * @return $this
68
     */
69
    public function setConfig(Config $config) {
70
        $this->config = $config;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @param $message
77
     * @return $this
78
     */
79
    public function setMessage($message) {
80
        $this->message = $message;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param array $repositoryTypes
87
     *
88
     * @return $this
89
     */
90
    public function setRepositoryTypes(array $repositoryTypes) {
91
        $this->repository_types = $repositoryTypes;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param mixed $node_server
98
     * @return ControlPanelConfig
99
     */
100
    public function setNodeServer($node_server) {
101
        $this->node_server = $node_server;
102
103
        return $this;
104
    }
105
}
106