‪TYPO3CMS  ‪main
WebhookType.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 
24 {
25  public function ‪__construct(
26  protected readonly string ‪$identifier,
27  protected readonly string $description,
28  protected readonly string $serviceName,
29  protected readonly string $factoryMethodName,
30  protected readonly ?string $connectedEvent = null
31  ) {}
32 
33  public function ‪getIdentifier(): string
34  {
35  return ‪$this->identifier;
36  }
37 
38  public function ‪getDescription(): string
39  {
40  return $this->description;
41  }
42 
43  public function ‪getServiceName(): string
44  {
45  return $this->serviceName;
46  }
47 
48  public function ‪getFactoryMethod(): string
49  {
50  return $this->serviceName . '::' . $this->factoryMethodName;
51  }
52 
53  public function ‪getConnectedEvent(): ?string
54  {
55  return $this->connectedEvent;
56  }
57 }
‪TYPO3\CMS\Webhooks\Model\WebhookType\getConnectedEvent
‪getConnectedEvent()
Definition: WebhookType.php:53
‪TYPO3\CMS\Webhooks\Model\WebhookType\getIdentifier
‪getIdentifier()
Definition: WebhookType.php:33
‪TYPO3\CMS\Webhooks\Model\WebhookType\getDescription
‪getDescription()
Definition: WebhookType.php:38
‪TYPO3\CMS\Webhooks\Model\WebhookType\__construct
‪__construct(protected readonly string $identifier, protected readonly string $description, protected readonly string $serviceName, protected readonly string $factoryMethodName, protected readonly ?string $connectedEvent=null)
Definition: WebhookType.php:25
‪TYPO3\CMS\Webhooks\Model
Definition: WebhookInstruction.php:18
‪TYPO3\CMS\Webhooks\Model\WebhookType\getFactoryMethod
‪getFactoryMethod()
Definition: WebhookType.php:48
‪TYPO3\CMS\Webhooks\Model\WebhookType\getServiceName
‪getServiceName()
Definition: WebhookType.php:43
‪TYPO3\CMS\Webhooks\Model\WebhookType
Definition: WebhookType.php:24
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37