PHP Class PhpAmqpLib\Wire\GenericContent

Datei anzeigen Open project: php-amqplib/php-amqplib Class Usage Examples

Public Properties

Property Type Description
$delivery_info array

Protected Properties

Property Type Description
$prop_types Final property definitions
$propertyDefinitions array

Public Methods

Method Description
__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

Method Details

__construct() public method

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

get() public method

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
return mixed | PhpAmqpLib\Channel\AMQPChannel

get_properties() public method

Returns the properties content
public get_properties ( ) : array
return array

has() public method

Check whether a property exists in the 'properties' dictionary or if present - in the 'delivery_info' dictionary.
public has ( string $name ) : boolean
$name string
return boolean

load_properties() public method

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() public method

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
return string

set() public method

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

Property Details

$delivery_info public_oe property

public array $delivery_info
return array

$prop_types protected_oe property

Final property definitions
protected $prop_types

$propertyDefinitions protected_oe static_oe property

protected static array $propertyDefinitions
return array