Пример #1
0
 /**
  * @param      $dsi
  * @param bool $force
  */
 public function setHeadersId($dsi, $force = false)
 {
     if ($force || empty(SendRequest::$chanel)) {
         SendRequest::$chanel = $this->DSId = $dsi;
     }
 }
Пример #2
0
 /**
  *  Regenerate inner message ID
  * @return Read
  */
 public function generateIds()
 {
     !empty(SendRequest::$chanel) ?: (self::$clientChanelId = SendRequest::$chanel = $this->getRandomId());
     $this->setHeaders();
     $this->getData()->messageId = $this->getRandomId();
     return $this;
 }