5use Bitrix\Calendar\Core;
10 private array $body = [];
12 private array $headers = [];
14 private array $properties = [];
16 private ?
int $id =
null;
62 $this->properties = $properties;
74 $this->properties[$name] = $value;
84 return $this->properties;
94 return array_key_exists($name, $this->properties)
95 ? $this->properties[$name]
107 $this->headers[$name] = $value;
118 $this->headers = $headers;
128 return $this->headers;
136 public function getHeader(
string $name, $default =
null)
138 return array_key_exists($name, $this->headers)
139 ? $this->headers[$name]
150 $this->
setHeader(
'routingKey', $routingKey);
setHeader(string $name, $value)
setProperties(array $properties)
getHeader(string $name, $default=null)
setRoutingKey(string $routingKey=null)
getProperty(string $name, $default=null)
setHeaders(array $headers)
setProperty(string $name, $value)
setHeader(string $name, $value)
getHeader(string $name, $default=null)