for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Tools to use API as ActiveRecord for Yii2
*
* @link https://github.com/hiqdev/yii2-hiart
* @package yii2-hiart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\hiart\proxy;
abstract class Request extends \hiqdev\hiart\AbstractRequest
{
* @var object
protected $worker;
* @var string transport implementation to be specified in concrete implementation.
public $handlerClass;
abstract protected function createWorker();
public function send($options = [])
$worker = $this->getHandler()->send($this->getWorker(), $options);
return new $this->responseClass($this, $worker);
}
* @return Worker
public function getWorker()
if ($this->worker === null) {
$this->build();
$this->worker = $this->createWorker();
return $this->worker;