Completed
Push — master ( ac1049...ce68f3 )
by Marcus
02:02
created

Page   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 92
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomRootTemplate() 0 4 1
A getHeaders() 0 4 1
A addHeader() 0 4 1
A getStatus() 0 4 1
A setStatus() 0 4 1
1
<?php
2
3
/*
4
    HCSF - A multilingual CMS and Shopsystem
5
    Copyright (C) 2014  Marcus Haase - [email protected]
6
7
    This program is free software: you can redistribute it and/or modify
8
    it under the terms of the GNU General Public License as published by
9
    the Free Software Foundation, either version 3 of the License, or
10
    (at your option) any later version.
11
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16
17
    You should have received a copy of the GNU General Public License
18
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
namespace HaaseIT\HCSF;
22
23
24
/**
25
 * Class Page
26
 * @package HaaseIT\HCSF
27
 */
28
/**
29
 * Class Page
30
 * @package HaaseIT\HCSF
31
 */
32
class Page
33
{
34
    /**
35
     * @var \Zend\ServiceManager\ServiceManager
36
     */
37
    protected $serviceManager;
38
39
    /**
40
     * @var string
41
     */
42
    protected $customroottemplate;
43
44
    /**
45
     * @var string
46
     */
47
    public $cb_pagetype;
48
49
    /**
50
     * @var string
51
     */
52
    public $cb_subnav;
53
54
    /**
55
     * @var string
56
     */
57
    public $cb_customcontenttemplate;
58
59
    /**
60
     * @var int
61
     */
62
    protected $status = 200;
63
64
    /**
65
     * @var \HaaseIT\HCSF\PagePayload
66
     */
67
    public $oPayload;
68
69
    /**
70
     * @var array
71
     */
72
    public $cb_customdata;
73
74
    /**
75
     * @var array|string
76
     */
77
    public $cb_pageconfig;
78
79
    /**
80
     * @var array
81
     */
82
    protected $headers = [];
83
84
    /**
85
     * @return string
86
     */
87
    public function getCustomRootTemplate()
88
    {
89
        return $this->customroottemplate;
90
    }
91
92
    /**
93
     * @return array
94
     */
95
    public function getHeaders()
96
    {
97
        return $this->headers;
98
    }
99
100
    /**
101
     * @param string $header
102
     */
103
    public function addHeader($header)
104
    {
105
        $this->headers[] = $header;
106
    }
107
108
    /**
109
     * @return int
110
     */
111
    public function getStatus()
112
    {
113
        return $this->status;
114
    }
115
116
    /**
117
     * @param int $status
118
     */
119
    public function setStatus($status)
120
    {
121
        $this->status = $status;
122
    }
123
}
124