call_id = $call_id; } public function has_call_id() : bool { return $this->call_id > -1; } public function get_call_id() : int { return $this->call_id; } //User Call ID public function set_user_call_id(string $user_call_id){ $this->user_call_id = $user_call_id == "" ? null : $user_call_id; } public function has_user_call_id() : bool { return $this->user_call_id != null; } public function get_user_call_id() : string { return $this->user_call_id != null ? $this->user_call_id : "null"; } //User response to call public function set_accepted(int $accepted){ $this->accepted = $accepted; } public function has_accepted() : bool { return $this->accepted > -1; } public function get_accepted() : int { return $this->accepted; } }