src/PdoDataSource.php
public function setHostname($hostname = null) {
		$this->hostname = $hostname !== null ? (string) $hostname : null;

		return $this;
	}
public function setHostname($hostname = null) {
		$this->hostname = $hostname !== null ? (string) $hostname : null;

		return $this;
	}
Sets the hostname

@param string|null $hostname the hostname where the database can be accessed, e.g. `db.example.com`
@return static this instance for chaining