Property | Type | Description | |
---|---|---|---|
$body | mixed | The body of the message. | |
$host | string | The hostname for this endpoint. | |
$password | string | The password for this endpoint. | |
$path | string | Absolute path of the request. | |
$port | string | The port for this endpoint. | |
$scheme | string | The URI scheme. | |
$username | string | The username for this endpoint. |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Constructor Adds config values to the public properties when a new object is created. | |
__toString ( ) : string | Magic method to convert object to string. | |
body ( mixed $data = null, array $options = [] ) : array | Add body parts and compile the message body. | |
to ( string $format, array $options = [] ) : mixed | Converts the data in the record set to a different format, i.e. an array. Available options: array, url, context, or string. |
public __construct ( array $config = [] ) : void | ||
$config | array | Available configuration options are: - `'scheme'` _string_: 'tcp' - `'host'` _string_: 'localhost' - `'port'` _integer_: null - `'username'` _string_: null - `'password'` _string_: null - `'path'` _string_: null - `'body'` _mixed_: null |
return | void |
public __toString ( ) : string | ||
return | string |