Passed
Push — master ( 38868e...4e6da1 )
by WEBEWEB
02:05
created

SyntaxHighlighterConfig::getBloggerMode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the syntaxhighligter-bundle package.
5
 *
6
 * (c) 2017 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\SyntaxHighlighterBundle\API;
13
14
/**
15
 * SyntaxHighlighter config.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\SyntaxHighlighterBundle\API
19
 */
20
class SyntaxHighlighterConfig {
21
22
    /**
23
     * Blogger mode.
24
     *
25
     * @var boolean
26
     */
27
    private $bloggerMode = false;
28
29
    /**
30
     * Strings
31
     *
32
     * @var SyntaxHighlighterStrings
33
     */
34
    private $strings;
35
36
    /**
37
     * Strip BRs.
38
     *
39
     * @var boolean
40
     */
41
    private $stripBrs = false;
42
43
    /**
44
     * Tag name.
45
     *
46
     * @var string
47
     */
48
    private $tagName = "pre";
49
50
    /**
51
     * Constructor.
52
     */
53
    public function __construct() {
54
        // NOTHING TO DO.
55
    }
56
57
    /**
58
     * Get the blogger mode.
59
     *
60
     * @return boolean Returns the blogger mode.
61
     */
62
    public function getBloggerMode() {
63
        return $this->bloggerMode;
64
    }
65
66
    /**
67
     * Get the strings.
68
     *
69
     * @return SyntaxHighlighterStrings Returns the strings
70
     */
71
    public function getStrings() {
72
        return $this->strings;
73
    }
74
75
    /**
76
     * Get the strip BRs.
77
     *
78
     * @return boolean Returns the strip BRs.
79
     */
80
    public function getStripBrs() {
81
        return $this->stripBrs;
82
    }
83
84
    /**
85
     * Get the tag name.
86
     *
87
     * @return string Returns the tag name.
88
     */
89
    public function getTagName() {
90
        return $this->tagName;
91
    }
92
93
    /**
94
     * Set the blogger mode.
95
     *
96
     * @param boolean $bloggerMode The blogger mode.
97
     * @return SyntaxHighlighterConfig Returns this SyntaxHighlighter config.
98
     */
99
    public function setBloggerMode($bloggerMode = false) {
100
        $this->bloggerMode = $bloggerMode;
101
        return $this;
102
    }
103
104
    /**
105
     * Set the strings.
106
     *
107
     * @param SyntaxHighlighterStrings $strings The strings.
108
     * @return SyntaxHighlighterConfig Returns this SyntaxHighlighter config.
109
     */
110
    public function setStrings(SyntaxHighlighterStrings $strings = null) {
111
        $this->strings = $strings;
112
        return $this;
113
    }
114
115
    /**
116
     * Set the strip BRs.
117
     *
118
     * @param boolean $stripBrs The strip BRs.
119
     * @return SyntaxHighlighterConfig Returns this SyntaxHighlighter config.
120
     */
121
    public function setStripBrs($stripBrs = false) {
122
        $this->stripBrs = $stripBrs;
123
        return $this;
124
    }
125
126
    /**
127
     * Set the tag name.
128
     *
129
     * @param string $tagName The tag name.
130
     * @return SyntaxHighlighterConfig Returns this SyntaxHighlighter config.
131
     */
132
    public function setTagName($tagName = "pre") {
133
        $this->tagName = $tagName;
134
        return $this;
135
    }
136
137
}
138