Passed
Push — master ( 7d70d8...c99aca )
by Carsten
02:51
created

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