for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File: PingHandler.php
*
* @author Maciej Sławik <[email protected]>
* Github: https://github.com/maciejslawik
*/
namespace MSlwk\FreshMail\Handler\Ping;
use MSlwk\FreshMail\Handler\AbstractHandler;
* Class PingHandler
* @package MSlwk\FreshMail\Handler\Ping
class PingHandler extends AbstractHandler
{
const API_ENDPOINT = '/rest/ping';
* @return string
public function ping(): string
$getParameters = [];
$postParameters = [];
$response = $this->processRequest($getParameters, $postParameters);
return $response->data;
}
protected function getApiEndpoint(): string
return self::API_ENDPOINT;