function IdentificationHeader::setIds
Set a collection of IDs to use in the value of this Header.
Parameters
string[] $ids:
Throws
1 call to IdentificationHeader::setIds()
- IdentificationHeader::setId in vendor/
symfony/ mime/ Header/ IdentificationHeader.php - Set the ID used in the value of this header.
File
-
vendor/
symfony/ mime/ Header/ IdentificationHeader.php, line 78
Class
- IdentificationHeader
- An ID MIME Header for something like Message-ID or Content-ID (one or more addresses).
Namespace
Symfony\Component\Mime\HeaderCode
public function setIds(array $ids) : void {
$this->ids = [];
$this->idsAsAddresses = [];
foreach ($ids as $id) {
$this->idsAsAddresses[] = new Address($id);
$this->ids[] = $id;
}
}