![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/ |
<?php namespace PhpAmqpLib\Wire; abstract class Constants { const VERSION = ''; const AMQP_HEADER = ''; /** * @var array<int, string> */ protected static $FRAME_TYPES = array(); /** * @var array<int, string> */ protected static $CONTENT_METHODS = array(); /** * @var array<int, string> */ protected static $CLOSE_METHODS = array(); /** * @var array<string, string> */ public static $GLOBAL_METHOD_NAMES = array(); /** * @return string */ public function getHeader() { return static::AMQP_HEADER; } /** * @param int $type * @return bool */ public function isFrameType($type) { return array_key_exists($type, static::$FRAME_TYPES); } /** * @param int $type * @return string */ public function getFrameType($type) { return static::$FRAME_TYPES[$type]; } /** * @param string $method * @return bool */ public function isContentMethod($method) { return in_array($method, static::$CONTENT_METHODS, false); } /** * @param string $method * @return bool */ public function isCloseMethod($method) { return in_array($method, static::$CLOSE_METHODS, false); } }