![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/zbateson/mail-mime-parser/src/Header/ |
<?php /** * This file is part of the ZBateson\MailMimeParser project. * * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace ZBateson\MailMimeParser\Header; use ZBateson\MailMimeParser\Header\Consumer\ConsumerService; /** * Represents a Content-ID, Message-ID, In-Reply-To or References header. * * For a multi-id header like In-Reply-To or References, all IDs can be * retrieved by calling {@see IdHeader::getIds()}. Otherwise, to retrieve the * first (or only) ID call {@see IdHeader::getValue()}. * * @author Zaahid Bateson */ class IdHeader extends MimeEncodedHeader { /** * Returns an IdBaseConsumer. * * @return Consumer\AbstractConsumer */ protected function getConsumer(ConsumerService $consumerService) { return $consumerService->getIdBaseConsumer(); } /** * Returns the ID. Synonymous to calling getValue(). * * @return string|null The ID */ public function getId() : ?string { return $this->getValue(); } /** * Returns all IDs parsed for a multi-id header like References or * In-Reply-To. * * @return string[] An array of IDs */ public function getIds() : array { return $this->parts; } }