Test Setup Failed
Push — master ( 18e47d...6efccc )
by Carsten
07:52
created

WebsiteAbstract::getVia()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Germania\Websites;
3
4
abstract class WebsiteAbstract implements WebsiteInterface
5
{
6
7
    /**
8
     * @var int
9
     */
10
    public $id;
11
12
    /**
13
     * @var string
14
     */
15
    public $title;
16
17
    /**
18
     * @var string
19
     */
20
    public $route;
21
22
    /**
23
     * @var string
24
     */
25
    public $route_name;
26
27
    /**
28
     * @var array
29
     */
30
    public $via = array();
31
32
    /**
33
     * @var string
34
     */
35
    public $content_file;
36
37
    /**
38
     * @var string
39
     */
40
    public $controller;
41
42
    /**
43
     * @var string
44
     */
45
    public $template;
46
47
    /**
48
     * @var string
49
     */
50
    public $dom_id;
51
52
    /**
53
     * @var mixed
54
     */
55
    public $is_active;
56
57
    /**
58
     * @var array
59
     */
60
    public $javascripts = array();
61
62
    /**
63
     * @var array
64
     */
65
    public $stylesheets = array();
66
67
68 2
    /**
69
     * Gets the page ID.
70 2
     *
71
     * @return int
72
     */
73
    public function getId()
74
    {
75
        return $this->id;
76
    }
77
78 2
    /**
79
     * Gets the page title.
80 2
     *
81
     * @return string
82
     */
83
    public function getTitle()
84
    {
85
        return $this->title;
86
    }
87
88
89 2
    /**
90
     * Gets the page route.
91 2
     *
92
     * @return string
93
     */
94
    public function getRoute()
95
    {
96
        return $this->route;
97
    }
98
99
100 2
    /**
101
     * Gets the page route name.
102 2
     *
103
     * @return string
104
     */
105
    public function getRouteName()
106
    {
107
        return $this->route_name;
108
    }
109
110
111 2
    /**
112
     * Gets the allowed HTTP methods to "call" this website with.
113 2
     *
114
     * @return array
115
     */
116
    public function getVia()
117
    {
118
        return $this->via;
119
    }
120
121
122 2
    /**
123
     * Gets the content file for this page.
124 2
     *
125
     * @return string
126
     */
127
    public function getContentFile()
128
    {
129
        return $this->content_file;
130
    }
131
132
133 2
    /**
134
     * Gets the Controller class name for this page
135 2
     *
136
     * @return string
137
     */
138
    public function getController()
139
    {
140
        return $this->controller;
141
    }
142
143
144 2
    /**
145
     * Gets the page template file.
146 2
     *
147
     * @return string
148
     */
149
    public function getTemplate()
150
    {
151
        return $this->template;
152
    }
153
154
155 2
    /**
156
     * Gets the DOM ID for this page.
157 2
     *
158
     * @return string
159
     */
160
    public function getDomId()
161
    {
162
        return $this->dom_id;
163
    }
164
165
166 2
    /**
167
     * Gets an array with custom Javascripts
168 2
     *
169
     * @return array
170
     */
171
    public function getJavascripts()
172
    {
173
        return $this->javascripts;
174
    }
175
176
177
    /**
178
     * Gets an array with custom Stylesheets
179
     *
180
     * @return array
181
     */
182
    public function getStylesheets()
183
    {
184
        return $this->stylesheets;
185
    }
186
187
188
    /**
189
     * Checks if the page is marked 'active'.
190
     *
191
     * @return mixed
192
     */
193
    public function isActive()
194
    {
195
        return $this->is_active;
196
    }
197
}
198