Completed
Push — master ( c99aca...a1fe04 )
by Carsten
05:24
created

WebsiteAbstract::getController()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
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 string
29
     */
30
    public $content_file;
31
32
    /**
33
     * @var string
34
     */
35
    public $controller;
36
37
    /**
38
     * @var string
39
     */
40
    public $template;
41
42
    /**
43
     * @var string
44
     */
45
    public $dom_id;
46
47
    /**
48
     * @var mixed
49
     */
50
    public $is_active;
51
52
    /**
53
     * @var array
54
     */
55
    public $javascripts = array();
56
57
    /**
58
     * @var array
59
     */
60
    public $stylesheets = array();
61
62
63
    /**
64
     * Gets the page ID.
65
     *
66
     * @return int
67
     */
68 1
    public function getId()
69
    {
70 1
        return $this->id;
71
    }
72
73
    /**
74
     * Gets the page title.
75
     *
76
     * @return string
77
     */
78 1
    public function getTitle()
79
    {
80 1
        return $this->title;
81
    }
82
83
84
    /**
85
     * Gets the page route.
86
     *
87
     * @return string
88
     */
89 1
    public function getRoute()
90
    {
91 1
        return $this->route;
92
    }
93
94
95
    /**
96
     * Gets the page route name.
97
     *
98
     * @return string
99
     */
100 1
    public function getRouteName()
101
    {
102 1
        return $this->route_name;
103
    }
104
105
106
    /**
107
     * Gets the content file for this page.
108
     *
109
     * @return string
110
     */
111 1
    public function getContentFile()
112
    {
113 1
        return $this->content_file;
114
    }
115
116
117
    /**
118
     * Gets the Controller class name for this page
119
     *
120
     * @return string
121
     */
122 1
    public function getController()
123
    {
124 1
        return $this->controller;
125
    }
126
127
128
    /**
129
     * Gets the page template file.
130
     *
131
     * @return string
132
     */
133 1
    public function getTemplate()
134
    {
135 1
        return $this->template;
136
    }
137
138
139
    /**
140
     * Gets the DOM ID for this page.
141
     *
142
     * @return string
143
     */
144 1
    public function getDomId()
145
    {
146 1
        return $this->dom_id;
147
    }
148
149
150
    /**
151
     * Gets an array with custom Javascripts
152
     *
153
     * @return array
154
     */
155 1
    public function getJavascripts()
156
    {
157 1
        return $this->javascripts;
158
    }
159
160
161
    /**
162
     * Gets an array with custom Stylesheets
163
     *
164
     * @return array
165
     */
166 1
    public function getStylesheets()
167
    {
168 1
        return $this->stylesheets;
169
    }
170
171
172
    /**
173
     * Checks if the page is marked 'active'.
174
     *
175
     * @return mixed
176
     */
177
    public function isActive()
178
    {
179
        return $this->is_active;
180
    }
181
}
182