AdobeConnectClient\Connection\Curl\Connection
Connection using cURL
Synopsis
class Connection
implements
ConnectionInterface
{
- // methods
- public void __construct()
- public void setHost()
- public void get()
- public void post()
- protected resource prepareCurl()
- protected string getFullURL()
- protected array convertFileParams()
- protected array|null fileInfo()
- protected void setConfig()
- protected int extractHeader()
Hierarchy
Coverage
Methods | 0% | 0 / 10 |
Lines | 0% | / |
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
65 | ShortVariable | Avoid variables with short names like $ch. Configured minimum length is 3. |
83 | ShortVariable | Avoid variables with short names like $ch. Configured minimum length is 3. |
108 | ShortVariable | Avoid variables with short names like $ch. Configured minimum length is 3. |
166 - 168 | ElseExpression | The method fileInfo uses an else expression. Else is never necessary and you can simplify the code to work without else. |
207 | UnusedFormalParameter | Avoid unused parameters such as '$curlResource'. |
Members
protected
- $config — array
- $headers — array
- $host — string
Methods
protected
- convertFileParams() — Convert stream file and SplFileInfo in CURLFile.
- extractHeader() — Extract header line and store it to posterior use.
- fileInfo() — Get the filepath and mime-type from a file.
- getFullURL() — Get the full URL with query parameters.
- prepareCurl() — Reset the temporary headers and prepare the cURL.
- setConfig() — Set the cURL config.
public
- __construct() — Create the instance using a host URL and config.
- get()
- post()
- setHost() — Set the Host URL.