PHP Класс lithium\net\Message

Наследование: extends lithium\core\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor Adds config values to the public properties when a new object is created.
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
Результат void

__toString() публичный Метод

Magic method to convert object to string.
public __toString ( ) : string
Результат string

body() публичный Метод

Add body parts and compile the message body.
public body ( mixed $data = null, array $options = [] ) : array
$data mixed
$options array - `'buffer'` _integer_: split the body string
Результат array

to() публичный Метод

Converts the data in the record set to a different format, i.e. an array. Available options: array, url, context, or string.
public to ( string $format, array $options = [] ) : mixed
$format string Format to convert to.
$options array
Результат mixed

Описание свойств

$body публичное свойство

The body of the message.
public mixed $body
Результат mixed

$host публичное свойство

The hostname for this endpoint.
public string $host
Результат string

$password публичное свойство

The password for this endpoint.
public string $password
Результат string

$path публичное свойство

Absolute path of the request.
public string $path
Результат string

$port публичное свойство

The port for this endpoint.
public string $port
Результат string

$scheme публичное свойство

The URI scheme.
public string $scheme
Результат string

$username публичное свойство

The username for this endpoint.
public string $username
Результат string