2 namespace callnotifier;
4 class Logger_CallEcho implements Logger
6 public function log($type, $arData)
10 $this->displayIncoming($arData['call']);
13 $this->displayFinished($arData['call']);
19 protected function displayIncoming(CallMonitor_Call $call)
21 echo 'Incoming call from ' . $call->from
22 . ' to ' . $call->to . "\n";
25 protected function displayFinished(CallMonitor_Call $call)
27 echo 'Finished call from ' . $call->from
29 . ', length ' . date('H:i:s', $call->end - $call->start - 3600)