‪TYPO3CMS  10.4
QueueService.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 
19 
24 {
28  protected ‪$calls;
29 
33  protected ‪$values = [];
34 
38  protected ‪$active = false;
39 
43  public function set(array ‪$calls)
44  {
45  $this->calls = ‪$calls;
46  $this->active = true;
47  }
48 
52  public function get()
53  {
54  return ‪$this->calls;
55  }
56 
60  public function ‪isActive()
61  {
63  }
64 
65  public function ‪setActive(‪$active = true)
66  {
67  $this->active = (bool)‪$active;
68  }
69 
73  public function ‪shift()
74  {
75  return array_shift($this->calls);
76  }
77 
82  public function ‪addValue($identifier, $value)
83  {
84  $this->values[$identifier] = $value;
85  }
86 
90  public function ‪getValues()
91  {
92  return ‪$this->values;
93  }
94 }
‪OliverHader\IrreTutorial\Service\QueueService\setActive
‪setActive($active=true)
Definition: QueueService.php:62
‪OliverHader\IrreTutorial\Service\QueueService\getValues
‪array getValues()
Definition: QueueService.php:87
‪OliverHader\IrreTutorial\Service\QueueService
Definition: QueueService.php:24
‪OliverHader\IrreTutorial\Service\QueueService\shift
‪array null shift()
Definition: QueueService.php:70
‪OliverHader\IrreTutorial\Service
Definition: QueueService.php:16
‪OliverHader\IrreTutorial\Service\QueueService\$calls
‪array $calls
Definition: QueueService.php:27
‪OliverHader\IrreTutorial\Service\QueueService\isActive
‪bool isActive()
Definition: QueueService.php:57
‪OliverHader\IrreTutorial\Service\QueueService\addValue
‪addValue($identifier, $value)
Definition: QueueService.php:79
‪OliverHader\IrreTutorial\Service\QueueService\$values
‪array $values
Definition: QueueService.php:31
‪OliverHader\IrreTutorial\Service\QueueService\$active
‪bool $active
Definition: QueueService.php:35
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:23