EmailProcessingConfig.php in CryptX 3.5.2, at classes/EmailProcessingConfig.php
| 1 | <?php |
| 2 | |
| 3 | namespace CryptX; |
| 4 | |
| 5 | final class EmailProcessingConfig { |
| 6 | public function __construct( |
| 7 | private readonly string $content, |
| 8 | private readonly bool $isShortcode = false, |
| 9 | private readonly ?int $postId = null |
| 10 | ) {} |
| 11 | |
| 12 | public function getContent(): string |
| 13 | { |
| 14 | return $this->content; |
| 15 | } |
| 16 | |
| 17 | public function isShortcode(): bool |
| 18 | { |
| 19 | return $this->isShortcode; |
| 20 | } |
| 21 | |
| 22 | public function getPostId(): ?int |
| 23 | { |
| 24 | return $this->postId; |
| 25 | } |
| 26 | } |
| 27 |