Property | Type | Description | |
---|---|---|---|
$client | chobie\Jira\Api\Client\ClientInterface | Client. | |
$mc | Memcached | Memcache. |
Method | Description | |
---|---|---|
__construct ( chobie\Jira\Api\Client\ClientInterface $client, string $server, integer $port ) | Create wrapper around other client. | |
sendRequest ( string $method, string $url, array $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string | Sends request to the API server. |
Method | Description | |
---|---|---|
getFromCache ( string $url, array $data, string $endpoint ) : mixed | Retrieves data from cache. | |
setCache ( string $url, array $data, string $endpoint, mixed $result ) : boolean | Sets data into cache. |
public __construct ( chobie\Jira\Api\Client\ClientInterface $client, string $server, integer $port ) | ||
$client | chobie\Jira\Api\Client\ClientInterface | Client. |
$server | string | Server. |
$port | integer | Port. |
public sendRequest ( string $method, string $url, array $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string | ||
$method | string | Request method. |
$url | string | URL. |
$data | array | Request data. |
$endpoint | string | Endpoint. |
$credential | chobie\Jira\Api\Authentication\AuthenticationInterface | Credential. |
$is_file | boolean | This is a file upload request. |
$debug | boolean | Debug this request. |
return | array | string |
protected ClientInterface,chobie\Jira\Api\Client $client | ||
return | chobie\Jira\Api\Client\ClientInterface |