for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ninjacto\OrtcPhp\Models\Requests;
use ninjacto\OrtcPhp\Configs\OrtcConfig;
use ninjacto\OrtcPhp\Handlers\OrtcResponseHandler;
abstract class OrtcRequest
{
/**
* @var OrtcConfig
*/
private $ortcConfig;
* get url path (not base url).
*
* @return string
abstract public function getUrlPath();
* is post request or get request?
* @return bool
abstract public function isPost();
* get post body.
* @return array
abstract public function getPostData();
* get response handler.
* @return OrtcResponseHandler
abstract public function getResponseHandler();
* @return OrtcConfig
public function getOrtcConfig()
return $this->ortcConfig;
}
* @param OrtcConfig $ortcConfig
* @return $this
public function setOrtcConfig($ortcConfig)
$this->ortcConfig = $ortcConfig;
return $this;
* is absolute url?
public function isUrlAbsolute()
return false;