get(LoggerInterface::class), $mimeTokenPartFactory ?? $di->get(MimeTokenPartFactory::class), $consumerService ?? $di->get(IdBaseConsumerService::class), $name, $value ); } /** * 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 \array_values(\array_map( function($p) { return $p->getValue(); }, \array_filter($this->parts, function($p) { return !($p instanceof CommentPart); }) )); } }