‪TYPO3CMS  11.5
Constraint.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Psr\Log\LogLevel;
19 
25 {
31  protected ‪$userOrGroup = '0';
32 
38  protected ‪$number = 20;
39 
46 
52  protected string ‪$channel = '';
53 
59  protected string ‪$level = LogLevel::DEBUG;
60 
66  protected ‪$startTimestamp = 0;
67 
73  protected ‪$endTimestamp = 0;
74 
79  protected ‪$manualDateStart;
80 
85  protected ‪$manualDateStop;
86 
92  protected ‪$pageId = 0;
93 
99  protected ‪$depth = 0;
100 
106  public function ‪setUserOrGroup($user)
107  {
108  $this->userOrGroup = $user;
109  }
110 
116  public function ‪getUserOrGroup()
117  {
118  return ‪$this->userOrGroup;
119  }
120 
126  public function ‪setNumber(‪$number)
127  {
128  $this->number = (int)‪$number;
129  }
130 
136  public function ‪getNumber()
137  {
138  return ‪$this->number;
139  }
140 
146  public function ‪setWorkspaceUid($workspace)
147  {
148  $this->workspaceUid = $workspace;
149  }
150 
156  public function ‪getWorkspaceUid()
157  {
158  return ‪$this->workspaceUid;
159  }
160 
164  public function ‪setChannel(string ‪$channel): void
165  {
166  $this->channel = ‪$channel;
167  }
168 
172  public function ‪getChannel(): string
173  {
174  return ‪$this->channel;
175  }
176 
180  public function ‪setLevel(string ‪$level): void
181  {
182  $this->level = ‪$level;
183  }
184 
188  public function ‪getLevel(): string
189  {
190  return ‪$this->level;
191  }
192 
198  public function ‪setStartTimestamp($timestamp)
199  {
200  $this->startTimestamp = (int)$timestamp;
201  }
202 
208  public function ‪getStartTimestamp()
209  {
211  }
212 
218  public function ‪setEndTimestamp($timestamp)
219  {
220  $this->endTimestamp = (int)$timestamp;
221  }
222 
228  public function ‪getEndTimestamp()
229  {
230  return ‪$this->endTimestamp;
231  }
232 
238  public function ‪setPageId($id)
239  {
240  $this->pageId = (int)$id;
241  }
242 
248  public function ‪getPageId()
249  {
250  return ‪$this->pageId;
251  }
252 
258  public function ‪setDepth(‪$depth)
259  {
260  $this->depth = ‪$depth;
261  }
262 
268  public function ‪getDepth()
269  {
270  return (int)‪$this->depth;
271  }
272 
278  public function ‪setManualDateStart(?\DateTime ‪$manualDateStart = null)
279  {
280  $this->manualDateStart = ‪$manualDateStart;
281  }
282 
288  public function ‪getManualDateStart()
289  {
291  }
292 
298  public function ‪setManualDateStop(?\DateTime ‪$manualDateStop = null)
299  {
300  $this->manualDateStop = ‪$manualDateStop;
301  }
302 
308  public function ‪getManualDateStop()
309  {
311  }
312 }
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStart
‪setManualDateStart(?\DateTime $manualDateStart=null)
Definition: Constraint.php:269
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$channel
‪string $channel
Definition: Constraint.php:49
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStart
‪DateTime null getManualDateStart()
Definition: Constraint.php:279
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$userOrGroup
‪string $userOrGroup
Definition: Constraint.php:30
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setNumber
‪setNumber($number)
Definition: Constraint.php:117
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getWorkspaceUid
‪int getWorkspaceUid()
Definition: Constraint.php:147
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setEndTimestamp
‪setEndTimestamp($timestamp)
Definition: Constraint.php:209
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setWorkspaceUid
‪setWorkspaceUid($workspace)
Definition: Constraint.php:137
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setStartTimestamp
‪setStartTimestamp($timestamp)
Definition: Constraint.php:189
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getLevel
‪getLevel()
Definition: Constraint.php:179
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$number
‪int $number
Definition: Constraint.php:36
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStart
‪DateTime null $manualDateStart
Definition: Constraint.php:73
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getDepth
‪int getDepth()
Definition: Constraint.php:259
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$endTimestamp
‪int $endTimestamp
Definition: Constraint.php:68
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$level
‪string $level
Definition: Constraint.php:56
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getEndTimestamp
‪int getEndTimestamp()
Definition: Constraint.php:219
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStop
‪setManualDateStop(?\DateTime $manualDateStop=null)
Definition: Constraint.php:289
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setUserOrGroup
‪setUserOrGroup($user)
Definition: Constraint.php:97
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getStartTimestamp
‪int getStartTimestamp()
Definition: Constraint.php:199
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setPageId
‪setPageId($id)
Definition: Constraint.php:229
‪TYPO3\CMS\Belog\Domain\Model\Workspace\UID_ANY_WORKSPACE
‪const UID_ANY_WORKSPACE
Definition: Workspace.php:36
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStop
‪DateTime null getManualDateStop()
Definition: Constraint.php:299
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$workspaceUid
‪int $workspaceUid
Definition: Constraint.php:42
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getChannel
‪getChannel()
Definition: Constraint.php:163
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getUserOrGroup
‪string getUserOrGroup()
Definition: Constraint.php:107
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$depth
‪int $depth
Definition: Constraint.php:90
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setChannel
‪setChannel(string $channel)
Definition: Constraint.php:155
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$pageId
‪int $pageId
Definition: Constraint.php:84
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setDepth
‪setDepth($depth)
Definition: Constraint.php:249
‪TYPO3\CMS\Belog\Domain\Model\Constraint
Definition: Constraint.php:25
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setLevel
‪setLevel(string $level)
Definition: Constraint.php:171
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$startTimestamp
‪int $startTimestamp
Definition: Constraint.php:62
‪TYPO3\CMS\Belog\Domain\Model
Definition: Constraint.php:16
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStop
‪DateTime null $manualDateStop
Definition: Constraint.php:78
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getNumber
‪int getNumber()
Definition: Constraint.php:127
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getPageId
‪int getPageId()
Definition: Constraint.php:239