src/Entity/Request.php
public function setBasicAuth(string $username, string $password)
    {
        $this->basicAuthUsername = $username;
        $this->basicAuthPassword = $password;
        return $this;
    }
public function setBasicAuth(string $username, string $password)
    {
        $this->basicAuthUsername = $username;
        $this->basicAuthPassword = $password;
        return $this;
    }
public function setBasicAuth ( string $ username , string $ password ) { $ this -> basicAuthUsername = $ username ; $ this -> basicAuthPassword = $ password ; return $ this ; }
Sets the credentials for the basic authentication.
@param string $username The username to use.
@param string $password The password to use.
@return $this Implementing fluent interface.
Sets the credentials for the basic authentication .