ehloName = $ehloName; $this->hostname = $hostname; $this->address = $address; } /** * Returns the name used to identify the server in the first part of the * extended-domain line. * * Note that this is not necessarily the name used in the EHLO line to an * SMTP server, since implementations differ so much, not much can be * guaranteed except the position it was parsed in. * * @return string|null The name */ public function getEhloName() { return $this->ehloName; } /** * Returns the hostname of the server, or whatever string in the hostname * position when parsing (but never an address). * * @return string|null */ public function getHostname() { return $this->hostname; } /** * Returns the address of the server, or whatever string that looks like an * address in the address position when parsing (but never a hostname). * */ public function getAddress(): ?string { return $this->address; } }