BannerDemand::getCurrentPageUid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 1
cts 1
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace DERHANSEN\SfBanners\Domain\Model;
3
4
/*
5
 * This file is part of the Extension "sf_banners" for TYPO3 CMS.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.txt file that was distributed with this source code.
9
 */
10
11
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
12
13
/**
14
 * Banner demand
15
 *
16
 * @author Torben Hansen <[email protected]>
17
 */
18
class BannerDemand extends AbstractEntity
19
{
20
21
    /**
22
     * Categories
23
     *
24
     * @var string
25
     */
26
    protected $categories;
27
28
    /**
29
     * Startingpoint(s)
30
     *
31
     * @var string
32
     */
33
    protected $startingPoint;
34
35
    /**
36
     * Display Mode - default is to display all banners
37
     *
38
     * @var string
39
     */
40
    protected $displayMode = 'all';
41
42
    /**
43
     * The current page uid
44
     *
45
     * @var int
46
     */
47
    protected $currentPageUid;
48
49
    /**
50
     * Max results of banners
51
     *
52
     * @var int
53
     */
54
    protected $maxResults = 0;
55
56
    /**
57
     * Setter for currentPageUid
58
     *
59
     * @param string $categories The categories
60
     * @return void
61 1
     */
62
    public function setCategories($categories)
63 1
    {
64 1
        $this->categories = $categories;
65
    }
66
67
    /**
68
     * Getter for categories
69
     *
70
     * @return string
71 8
     */
72
    public function getCategories()
73 8
    {
74
        return $this->categories;
75
    }
76
77
    /**
78
     * Setter for currentPageUid
79
     *
80
     * @param int $currentPageUid Current Page UID
81
     * @return void
82 2
     */
83
    public function setCurrentPageUid($currentPageUid)
84 2
    {
85 2
        $this->currentPageUid = $currentPageUid;
86
    }
87
88
    /**
89
     * Getter for currentPageUid
90
     *
91
     * @return int
92 8
     */
93
    public function getCurrentPageUid()
94 8
    {
95
        return $this->currentPageUid;
96
    }
97
98
    /**
99
     * Setter for startingPoint
100
     *
101
     * @param string $displayMode Displaymode
102
     * @return void
103 1
     */
104
    public function setDisplayMode($displayMode)
105 1
    {
106 1
        $this->displayMode = $displayMode;
107
    }
108
109
    /**
110
     * Getter for displayMode
111
     *
112
     * @return string
113 8
     */
114
    public function getDisplayMode()
115 8
    {
116
        return $this->displayMode;
117
    }
118
119
    /**
120
     * Setter for startingPoint
121
     *
122
     * @param string $startingPoint Startingpoint(s)
123
     * @return void
124 8
     */
125
    public function setStartingPoint($startingPoint)
126 8
    {
127 8
        $this->startingPoint = $startingPoint;
128
    }
129
130
    /**
131
     * Getter for startingPoint
132
     *
133
     * @return string
134 8
     */
135
    public function getStartingPoint()
136 8
    {
137
        return $this->startingPoint;
138
    }
139
140
    /**
141
     * @return int
142
     */
143
    public function getMaxResults()
144
    {
145
        return $this->maxResults;
146
    }
147
148
    /**
149
     * @param int $maxResults
150
     */
151
    public function setMaxResults(int $maxResults)
152
    {
153
        $this->maxResults = $maxResults;
154
    }
155
}
156