PHP Класс PhpAmqpLib\Wire\GenericContent

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$delivery_info array

Защищенные свойства (Protected)

Свойство Тип Описание
$prop_types Final property definitions
$propertyDefinitions array

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

Метод Описание
__construct ( array $properties, array $propertyTypes = null )
get ( string $name ) : mixed | PhpAmqpLib\Channel\AMQPChannel Look for additional properties in the 'properties' dictionary, and if present - the 'delivery_info' dictionary.
get_properties ( ) : array Returns the properties content
has ( string $name ) : boolean Check whether a property exists in the 'properties' dictionary or if present - in the 'delivery_info' dictionary.
load_properties ( PhpAmqpLib\Wire\AMQPReader $reader ) Given the raw bytes containing the property-flags and property-list from a content-frame-header, parse and insert into a dictionary stored in this object as an attribute named 'properties'.
serialize_properties ( ) : string Serializes the 'properties' attribute (a dictionary) into the raw bytes making up a set of property flags and a property list, suitable for putting into a content frame header.
set ( string $name, mixed $value ) Sets a property value

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

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

public __construct ( array $properties, array $propertyTypes = null )
$properties array Message property content
$propertyTypes array Message property definitions

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

Look for additional properties in the 'properties' dictionary, and if present - the 'delivery_info' dictionary.
public get ( string $name ) : mixed | PhpAmqpLib\Channel\AMQPChannel
$name string
Результат mixed | PhpAmqpLib\Channel\AMQPChannel

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

Returns the properties content
public get_properties ( ) : array
Результат array

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

Check whether a property exists in the 'properties' dictionary or if present - in the 'delivery_info' dictionary.
public has ( string $name ) : boolean
$name string
Результат boolean

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

Given the raw bytes containing the property-flags and property-list from a content-frame-header, parse and insert into a dictionary stored in this object as an attribute named 'properties'.
public load_properties ( PhpAmqpLib\Wire\AMQPReader $reader )
$reader PhpAmqpLib\Wire\AMQPReader NOTE: do not mutate $reader

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

Serializes the 'properties' attribute (a dictionary) into the raw bytes making up a set of property flags and a property list, suitable for putting into a content frame header.
public serialize_properties ( ) : string
Результат string

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

Sets a property value
public set ( string $name, mixed $value )
$name string The property name (one of the property definition)
$value mixed The property value

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

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

public array $delivery_info
Результат array

$prop_types защищенное свойство

Final property definitions
protected $prop_types

$propertyDefinitions защищенное статическое свойство

protected static array $propertyDefinitions
Результат array