public function executeCommand(string $command, array $codes): string
    {
        $this->getLogger()->debug(sprintf('Email transport "%s" sent command "%s"', __CLASS__, trim($command)));
        $this->stream->write($command);
        $response = $this->getFullResponse();
        $this->assertResponseCode($response, $codes);

        return $response;
    }
public function executeCommand(string $command, array $codes): string
    {
        $this->getLogger()->debug(sprintf('Email transport "%s" sent command "%s"', __CLASS__, trim($command)));
        $this->stream->write($command);
        $response = $this->getFullResponse();
        $this->assertResponseCode($response, $codes);

        return $response;
    }
public function executeCommand ( string $ command , array $ codes ) : string { $ this -> getLogger ( ) -> debug ( sprintf ( 'Email transport "%s" sent command "%s"' , __CLASS__ , trim ( $ command ) ) ) ; $ this -> stream -> write ( $ command ) ; $ response = $ this -> getFullResponse ( ) ; $ this -> assertResponseCode ( $ response , $ codes ) ; return $ response ; }
Runs a command against the stream, expecting the given response codes.

@param int[] $codes

@return string The server response

@throws TransportException when an invalid response if received

@internal
Runs a command against the stream expecting the given response codes .