Completed
Pull Request — develop (#245)
by ANTHONIUS
08:30
created

ModuleOptions::getJobsPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 */
9
10
namespace Solr\Options;
11
12
13
use Zend\Stdlib\AbstractOptions;
14
15
/**
16
 * Provide available options for Solr Module
17
 *
18
 * @author  Anthonius Munthi <[email protected]>
19
 * @since   0.26
20
 * @package Solr\Options
21
 */
22
class ModuleOptions extends AbstractOptions
23
{
24
    /**
25
     * @var bool
26
     */
27
    protected $secure = false;
28
29
    /**
30
     * @var string
31
     */
32
    protected $hostname = 'localhost';
33
34
    /**
35
     * @var integer
36
     */
37
    protected $port = 80;
38
39
    /**
40
     * @var string
41
     */
42
    protected $path = '/solr';
43
44
    /**
45
     * @var string
46
     */
47
    protected $username = '';
48
49
    /**
50
     * @var string
51
     */
52
    protected $password = '';
53
54
    /**
55
     * @var string
56
     */
57
    protected $jobsPath = '/solr/YawikJobs';
58
59
    /**
60
     * @return boolean
61
     */
62
    public function isSecure()
63
    {
64
        return $this->secure;
65
    }
66
67
    /**
68
     * @param boolean $secure
69
     * @return ModuleOptions
70
     */
71
    public function setSecure($secure)
72
    {
73
        $this->secure = $secure;
74
75
        return $this;
76
    }
77
    
78
    /**
79
     * @return string
80
     */
81
    public function getHostname()
82
    {
83
        return $this->hostname;
84
    }
85
86
    /**
87
     * @param string $hostname
88
     * @return ModuleOptions
89
     */
90
    public function setHostname($hostname)
91
    {
92
        $this->hostname = $hostname;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return int
99
     */
100
    public function getPort()
101
    {
102
        return $this->port;
103
    }
104
105
    /**
106
     * @param int $port
107
     * @return ModuleOptions
108
     */
109
    public function setPort($port)
110
    {
111
        $this->port = $port;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @return string
118
     */
119
    public function getPath()
120
    {
121
        return $this->path;
122
    }
123
124
    /**
125
     * @param string $path
126
     * @return ModuleOptions
127
     */
128
    public function setPath($path)
129
    {
130
        $this->path = $path;
131
132
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getUsername()
139
    {
140
        return $this->username;
141
    }
142
143
    /**
144
     * @param string $username
145
     * @return ModuleOptions
146
     */
147
    public function setUsername($username)
148
    {
149
        $this->username = $username;
150
151
        return $this;
152
    }
153
154
    /**
155
     * @return string
156
     */
157
    public function getPassword()
158
    {
159
        return $this->password;
160
    }
161
162
    /**
163
     * @param string $password
164
     * @return ModuleOptions
165
     */
166
    public function setPassword($password)
167
    {
168
        $this->password = $password;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @return string
175
     */
176
    public function getJobsPath()
177
    {
178
        return $this->jobsPath;
179
    }
180
181
    /**
182
     * @param string $jobsPath
183
     * @return ModuleOptions
184
     */
185
    public function setJobsPath($jobsPath)
186
    {
187
        $this->jobsPath = $jobsPath;
188
189
        return $this;
190
    }
191
}