use InvalidArgumentException; require_once 'KnownCompositeType.php'; require_once 'annotations.php'; /** * Represents an AMQP Message Format delivery-annotations section * * @category Networking * @package libamqp * @author Raphael Cohn <*****@*****.**> * @author Eamon Walshe <*****@*****.**> * @copyright 2012 Raphael Cohn and Eamon Walshe * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 * @version Release: @package_version@ */ class delivery_annotations extends annotations { protected static $descriptor_name; protected static $descriptor_code; /** * @param array $annotations An associative array of string keys pointing to simple Value instances */ public function __construct(array $annotations = array()) { parent::__construct($annotations); } } require_once 'symbol.php'; require_once 'ulong.php'; delivery_annotations::init(new symbol("amqp:delivery-annotations:map"), ulong::instance_from_domain(0x0, 0x71));
} else { if ($name instanceof string) { $amqpKey = $name; } else { throw new InvalidArgumentException('Only string keys are permitted'); } } return $this->value->is_set($amqpKey); } /** * @param string|\string $name * @throws \InvalidArgumentException */ public function __unset($name) { if (is_string($name)) { $amqpKey = new string($name); } else { if ($name instanceof string) { $amqpKey = $name; } else { throw new InvalidArgumentException('Only string keys are permitted'); } } $this->value->__unset($amqpKey); } } require_once 'symbol.php'; require_once 'ulong.php'; application_properties::init(new symbol("amqp:application-properties:map"), ulong::instance_from_domain(0x0, 0x74));
$this->content_type = $content_type; case 6: $this->correlation_id = $correlation_id; case 5: $this->reply_to = $reply_to; case 4: $this->subject = $subject; case 3: $this->to = $to; case 2: $this->user_id = $user_id; case 1: $this->message_id = $message_id; case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; properties::init(new symbol("amqp:properties:list"), ulong::instance_from_domain(0x0, 0x73));
protected static $descriptor_code; protected static $listMappings = array("error" => array(0, NULL, '\\libamqp\\error', '\\libamqp\\error')); /** * @param Error|NULL $error */ public function __construct(Error &$error = NULL) { parent::__construct(); // Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 1: $this->error = $error; case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; rejected::init(new symbol("amqp:rejected:list"), ulong::instance_from_domain(0x0, 0x25));
// Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 5: $this->delivery_count = $delivery_count; case 4: $this->first_acquirer = $first_acquirer; case 3: $this->ttl = $ttl; case 2: $this->priority = $priority; case 1: $this->durable = $durable; case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; header::init(new symbol("amqp:header:list"), ulong::instance_from_domain(0x0, 0x70));
use InvalidArgumentException; require_once 'KnownCompositeType.php'; require_once 'annotations.php'; /** * Represents an AMQP Message Format message-annotations section * * @category Networking * @package libamqp * @author Raphael Cohn <*****@*****.**> * @author Eamon Walshe <*****@*****.**> * @copyright 2012 Raphael Cohn and Eamon Walshe * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 * @version Release: @package_version@ */ class message_annotations extends annotations { protected static $descriptor_name; protected static $descriptor_code; /** * @param array $annotations An associative array of string keys pointing to simple Value instances */ public function __construct(array $annotations = array()) { parent::__construct($annotations); } } require_once 'symbol.php'; require_once 'ulong.php'; message_annotations::init(new symbol("amqp:message-annotations:map"), ulong::instance_from_domain(0x0, 0x72));
{ protected static $descriptor_name; protected static $descriptor_code; protected static $listMappings = array(); /** * */ public function __construct() { parent::__construct(); // Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; accepted::init(new symbol("amqp:accepted:list"), ulong::instance_from_domain(0x0, 0x24));
*/ public function __construct($delivery_failed = NULL, $undeliverable_here = NULL, fields &$message_annotations = NULL) { parent::__construct(); // Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 3: $this->message_annotations = $message_annotations; case 2: $this->undeliverable_here = $undeliverable_here; case 1: $this->delivery_failed = $delivery_failed; case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; modified::init(new symbol("amqp:modified:list"), ulong::instance_from_domain(0x0, 0x27));
* @param mixed $offset <p> * The offset to assign the value to. * </p> * @param mixed $value <p> * The value to set. * </p> * @return void */ public function offsetSet($offset, $value) { $this->value->offsetSet($offset, $value); } /** * (PHP 5 >= 5.1.0)<br/> * Offset to unset * * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset <p> * The offset to unset. * </p> * @return void */ public function offsetUnset($offset) { $this->value->offsetUnset($offset); } } require_once 'symbol.php'; require_once 'ulong.php'; amqp_sequence::init(new symbol("amqp:amqp-sequence:list"), ulong::instance_from_domain(0x0, 0x76));
use InvalidArgumentException; require_once 'KnownCompositeType.php'; require_once 'annotations.php'; /** * Represents an AMQP Message Format footer section * * @category Networking * @package libamqp * @author Raphael Cohn <*****@*****.**> * @author Eamon Walshe <*****@*****.**> * @copyright 2012 Raphael Cohn and Eamon Walshe * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 * @version Release: @package_version@ */ class footer extends annotations { protected static $descriptor_name; protected static $descriptor_code; /** * @param array $annotations An associative array of string keys pointing to simple Value instances */ public function __construct(array $annotations = array()) { parent::__construct($annotations); } } require_once 'symbol.php'; require_once 'ulong.php'; footer::init(new symbol("amqp:footer:map"), ulong::instance_from_domain(0x0, 0x78));
{ protected static $descriptor_name; protected static $descriptor_code; protected static $listMappings = array(); /** * */ public function __construct() { parent::__construct(); // Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; released::init(new symbol("amqp:released:list"), ulong::instance_from_domain(0x0, 0x26));
public function __construct($condition, $description = NULL, fields &$info = NULL) { parent::__construct(static::$listMappings); // Yes, this uses fall-through, but does so to make sure trailing null suppression is possible $numberOfArgumentsSpecified = func_num_args(); switch ($numberOfArgumentsSpecified) { case 3: $this->info = $info; case 2: $this->description = $description; case 1: $this->condition = $condition; break; case 0: throw new BadMethodCallException("too few function arguments"); default: throw new BadMethodCallException("too many function arguments"); } } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; error::init(new symbol("amqp:error:list"), ulong::instance_from_domain(0x0, 0x1d));
switch ($numberOfArgumentsSpecified) { case 2: $this->section_offset = $section_offset; case 1: $this->section_number = $section_number; case 0: break; default: throw new BadMethodCallException("too many function arguments"); } } /** * @static * @return bool */ public static function isTerminal() { return FALSE; } /** * @return string */ public function __toString() { return parent::toString(__CLASS__); } } require_once 'symbol.php'; require_once 'ulong.php'; received::init(new symbol("amqp:received:list"), ulong::instance_from_domain(0x0, 0x23));