TorneLIB\Model\Interfaces\WrapperInterface
Interface Wrapper Interface with basic setup that should be present in all modules included in this package.
Synopsis
interface WrapperInterface
{
- // methods
- public void __construct()
- public WrapperConfig getConfig()
- public mixed setConfig()
- public array setAuthentication()
- public array getAuthentication()
- public mixed getBody()
- public mixed getParsed()
- public mixed getCode()
- public string getVersion()
- public mixed request()
Methods
public
- __construct() — Wrapper constructor.
- getAuthentication() — Get current authentication data.
- getBody() — Get http request body, raw.
- getCode() — Get http request head code. Example 200 success, 401 Unauthorized, etc.
- getConfig() — Get current configuration from WrapperConfig, so it can be updated with custom settings.
- getParsed() — Get http request parsed. Normally a body converted from xml, json, etc to a workable object.
- getVersion() — Get current version of netcurl, either from docblocks or internal settings.
- request() — Default request method. Replaces doGet, doPost, doPut, doDelete, etc.
- setAuthentication() — Authentication setup for all modules. Default setup is to use Basic Auth.
- setConfig() — Save/overwrite new WrapperConfig with new settings and options.