Completed
Push — master ( a27d66...168bdb )
by WEBEWEB
05:24
created

AbstractButton::setOutline()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
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 WBW\Bundle\BootstrapBundle\Button;
13
14
/**
15
 * Abstract button.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\BootstrapBundle\Button
19
 * @abstract
20
 */
21
abstract class AbstractButton implements ButtonInterface {
22
23
    /**
24
     * Active
25
     *
26
     * @var bool
27
     */
28
    private $active;
29
30
    /**
31
     * Block.
32
     *
33
     * @var bool
34
     */
35
    private $block;
36
37
    /**
38
     * Content.
39
     *
40
     * @var string
41
     */
42
    private $content;
43
44
    /**
45
     * Disabled.
46
     *
47
     * @var bool
48
     */
49
    private $disabled;
50
    /**
51
     * Outline.
52
     *
53
     * @var bool
54
     */
55
    private $outline;
56
57
    /**
58
     * Size.
59
     *
60
     * @var string
61
     */
62
    private $size;
63
64
    /**
65
     * Title.
66
     *
67
     * @var string
68
     */
69
    private $title;
70
71
    /**
72
     * Type.
73
     *
74
     * @var string
75
     */
76
    private $type;
77
78
    /**
79
     * Constructor.
80
     *
81
     * @param string type.
82
     */
83
    protected function __construct($type) {
84
        $this->setType($type);
85
    }
86
87
    /**
88
     * {@inheritDoc}
89
     */
90
    public function getActive() {
91
        return $this->active;
92
    }
93
94
    /**
95
     * {@inheritDoc}
96
     */
97
    public function getBlock() {
98
        return $this->block;
99
    }
100
    /**
101
     * {@inheritDoc}
102
     */
103
    public function getOutline() {
104
        return $this->outline;
105
    }
106
107
    /**
108
     * {@inheritDoc}
109
     */
110
    public function getContent() {
111
        return $this->content;
112
    }
113
114
    /**
115
     * {@inheritDoc}
116
     */
117
    public function getDisabled() {
118
        return $this->disabled;
119
    }
120
121
    /**
122
     * {@inheritDoc}
123
     */
124
    public function getPrefix() {
125
        return "btn-";
126
    }
127
128
    /**
129
     * {@inheritDoc}
130
     */
131
    public function getSize() {
132
        return $this->size;
133
    }
134
135
    /**
136
     * {@inheritDoc}
137
     */
138
    public function getTitle() {
139
        return $this->title;
140
    }
141
142
    /**
143
     * {@inheritDoc}
144
     */
145
    public function getType() {
146
        return $this->type;
147
    }
148
149
    /**
150
     * {@inheritDoc}
151
     */
152
    public function setActive($active) {
153
        $this->active = $active;
154
        return $this;
155
    }
156
157
    /**
158
     * {@inheritDoc}
159
     */
160
    public function setBlock($block) {
161
        $this->block = $block;
162
        return $this;
163
    }
164
    /**
165
     * {@inheritDoc}
166
     */
167
    public function setOutline($outline) {
168
        $this->outline = $outline;
169
        return $this;
170
    }
171
172
    /**
173
     * {@inheritDoc}
174
     */
175
    public function setContent($content) {
176
        $this->content = $content;
177
        return $this;
178
    }
179
180
    /**
181
     * {@inheritDoc}
182
     */
183
    public function setDisabled($disabled) {
184
        $this->disabled = $disabled;
185
        return $this;
186
    }
187
188
    /**
189
     * {@inheritDoc}
190
     */
191
    public function setSize($size) {
192
        $this->size = $size;
193
        return $this;
194
    }
195
196
    /**
197
     * {@inheritDoc}
198
     */
199
    public function setTitle($title) {
200
        $this->title = $title;
201
        return $this;
202
    }
203
204
    /**
205
     * {@inheritDoc}
206
     */
207
    public function setType($type) {
208
        $this->type = $type;
209
        return $this;
210
    }
211
}
212