Completed
Push — master ( 474113...884aa1 )
by Carsten
02:20
created

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