PHP 클래스 PhpAmqpLib\Wire\GenericContent

파일 보기 프로젝트 열기: php-amqplib/php-amqplib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$delivery_info array

보호된 프로퍼티들

프로퍼티 타입 설명
$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