Пример #1
0
 public static function creatDunnyLogEntry()
 {
     $logEntry = new LogEntry();
     $logEntryEtn = new LogEntryEtn();
     $logEntry->setRequestBody($logEntryEtn->getLastRequest());
     $logEntry->setResponseBody($logEntryEtn->getLastResponse());
     $logEntry->setRequestDateTime($logEntryEtn->getLastRequestDateTime());
     $logEntry->setResponseDateTime($logEntryEtn->getLastResponseDateTime());
     $logEntry->setRequestHeader('test');
     $logEntry->setResponseHeader("test2");
     return $logEntry;
 }
Пример #2
0
 public function setCommunicationLog(LogEntryEtn $logEntryEtn)
 {
     $this->logEntry = new LogEntry();
     $this->logEntry->setRequestBody($logEntryEtn->getLastRequest());
     $this->logEntry->setResponseBody($logEntryEtn->getLastResponse());
     $this->logEntry->setRequestDateTime($logEntryEtn->getLastRequestDateTime());
     $this->logEntry->setResponseDateTime($logEntryEtn->getLastResponseDateTime());
     return $this;
 }