‪TYPO3CMS  ‪main
QueueService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
30  protected ‪$calls;
31 
35  protected ‪$values = [];
36 
40  protected ‪$active = false;
41 
42  public function set(array ‪$calls): void
43  {
44  $this->calls = ‪$calls;
45  $this->active = true;
46  }
47 
48  public function get(): array
49  {
51  }
52 
53  public function ‪isActive(): bool
54  {
56  }
57 
58  public function ‪setActive(‪$active = true): void
59  {
60  $this->active = (bool)‪$active;
61  }
62 
63  public function ‪shift(): ?array
64  {
65  return array_shift($this->calls);
66  }
67 
72  public function ‪addValue(‪$identifier, $value): void
73  {
74  $this->values[‪$identifier] = $value;
75  }
76 
77  public function ‪getValues(): array
78  {
79  return ‪$this->values;
80  }
81 }
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\$calls
‪array $calls
Definition: QueueService.php:29
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService
Definition: QueueService.php:26
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\isActive
‪isActive()
Definition: QueueService.php:50
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\shift
‪shift()
Definition: QueueService.php:60
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\$values
‪array $values
Definition: QueueService.php:33
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\setActive
‪setActive($active=true)
Definition: QueueService.php:55
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\$active
‪bool $active
Definition: QueueService.php:37
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\getValues
‪getValues()
Definition: QueueService.php:74
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:23
‪TYPO3Tests\TestIrreForeignfield\Service
Definition: QueueService.php:18
‪TYPO3Tests\TestIrreForeignfield\Service\QueueService\addValue
‪addValue($identifier, $value)
Definition: QueueService.php:69
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37