public function duration() { $endTime = $this->call->endTime(); if (null === $endTime) { return; } return $endTime - $this->call->time(); }