Completed
Pull Request — develop (#241)
by ANTHONIUS
07:36
created

ModuleOptions::getPath()   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.27
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
     * @return boolean
56
     */
57
    public function isSecure()
58
    {
59
        return $this->secure;
60
    }
61
62
    /**
63
     * @param boolean $secure
64
     * @return ModuleOptions
65
     */
66
    public function setSecure($secure)
67
    {
68
        $this->secure = $secure;
69
70
        return $this;
71
    }
72
    
73
    /**
74
     * @return string
75
     */
76
    public function getHostname()
77
    {
78
        return $this->hostname;
79
    }
80
81
    /**
82
     * @param string $hostname
83
     * @return ModuleOptions
84
     */
85
    public function setHostname($hostname)
86
    {
87
        $this->hostname = $hostname;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return int
94
     */
95
    public function getPort()
96
    {
97
        return $this->port;
98
    }
99
100
    /**
101
     * @param int $port
102
     * @return ModuleOptions
103
     */
104
    public function setPort($port)
105
    {
106
        $this->port = $port;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getPath()
115
    {
116
        return $this->path;
117
    }
118
119
    /**
120
     * @param string $path
121
     * @return ModuleOptions
122
     */
123
    public function setPath($path)
124
    {
125
        $this->path = $path;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function getUsername()
134
    {
135
        return $this->username;
136
    }
137
138
    /**
139
     * @param string $username
140
     * @return ModuleOptions
141
     */
142
    public function setUsername($username)
143
    {
144
        $this->username = $username;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getPassword()
153
    {
154
        return $this->password;
155
    }
156
157
    /**
158
     * @param string $password
159
     * @return ModuleOptions
160
     */
161
    public function setPassword($password)
162
    {
163
        $this->password = $password;
164
165
        return $this;
166
    }
167
}