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

AbstractProgressBar::getHeight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\ProgressBar;
13
14
/**
15
 * Abstract progress bar.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\BootstrapBundle\ProgressBar
19
 * @abstract
20
 */
21
abstract class AbstractProgressBar implements ProgressBarInterface {
22
23
    /**
24
     * Animated.
25
     *
26
     * @var bool
27
     */
28
    private $animated;
29
30
    /**
31
     * Content.
32
     *
33
     * @var string
34
     */
35
    private $content;
36
37
    /**
38
     * Height.
39
     *
40
     * @var int
41
     */
42
    private $height;
43
44
    /**
45
     * Max.
46
     *
47
     * @var int
48
     */
49
    private $max;
50
51
    /**
52
     * Min.
53
     *
54
     * @var int
55
     */
56
    private $min;
57
58
    /**
59
     * Striped.
60
     *
61
     * @var bool
62
     */
63
    private $striped;
64
65
    /**
66
     * Type.
67
     *
68
     * @var string
69
     */
70
    private $type;
71
72
    /**
73
     * Value.
74
     *
75
     * @var int
76
     */
77
    private $value;
78
79
    /**
80
     * Constructor.
81
     *
82
     * @param string $type The type.
83
     */
84
    public function __construct($type) {
85
        $this->setType($type);
86
    }
87
88
    /**
89
     * {@inheritDoc}
90
     */
91
    public function getAnimated() {
92
        return $this->animated;
93
    }
94
95
    /**
96
     * {@inheritDoc}
97
     */
98
    public function getContent() {
99
        return $this->content;
100
    }
101
102
    /**
103
     * {@inheritDoc}
104
     */
105
    public function getHeight() {
106
        return $this->height;
107
    }
108
109
    /**
110
     * {@inheritDoc}
111
     */
112
    public function getMax() {
113
        return $this->max;
114
    }
115
116
    /**
117
     * {@inheritDoc}
118
     */
119
    public function getMin() {
120
        return $this->min;
121
    }
122
123
    /**
124
     * {@inheritDoc}
125
     */
126
    public function getPrefix() {
127
        return "progress-bar-";
128
    }
129
130
    /**
131
     * {@inheritDoc}
132
     */
133
    public function getStriped() {
134
        return $this->striped;
135
    }
136
137
    /**
138
     * {@inheritDoc}
139
     */
140
    public function getType() {
141
        return $this->type;
142
    }
143
144
    /**
145
     * {@inheritDoc}
146
     */
147
    public function getValue() {
148
        return $this->value;
149
    }
150
151
    /**
152
     * {@inheritDoc}
153
     */
154
    public function setAnimated($animated) {
155
        $this->animated = $animated;
156
        return $this;
157
    }
158
159
    /**
160
     * {@inheritDoc}
161
     */
162
    public function setContent($content) {
163
        $this->content = $content;
164
        return $this;
165
    }
166
167
    /**
168
     * {@inheritDoc}
169
     */
170
    public function setHeight($height) {
171
        $this->height = $height;
172
        return $this;
173
    }
174
175
    /**
176
     * {@inheritDoc}
177
     */
178
    public function setMax($max) {
179
        $this->max = $max;
180
        return $this;
181
    }
182
183
    /**
184
     * {@inheritDoc}
185
     */
186
    public function setMin($min) {
187
        $this->min = $min;
188
        return $this;
189
    }
190
191
    /**
192
     * {@inheritDoc}
193
     */
194
    public function setStriped($striped) {
195
        $this->striped = $striped;
196
        return $this;
197
    }
198
199
    /**
200
     * {@inheritDoc}
201
     */
202
    public function setType($type) {
203
        $this->type = $type;
204
        return $this;
205
    }
206
207
    /**
208
     * {@inheritDoc}
209
     */
210
    public function setValue($value) {
211
        $this->value = $value;
212
        return $this;
213
    }
214
}
215