Spatie\DbDumper\Databases\MySql::getContentsOfCredentialsFile PHP Method

getContentsOfCredentialsFile() public method

    public function getContentsOfCredentialsFile() : string
    {
        $contents = ['[client]', "user = '{$this->userName}'", "password = '{$this->password}'", "host = '{$this->host}'", "port = '{$this->port}'"];
        return implode(PHP_EOL, $contents);
    }