EPKB_AI_Conversation_Model A

Total Complexity 74
Dependencies 6
Dependents 4
Total lines 407
Lines of code 198
Logical lines of code 96
Comment lines 127
Methods 34
Properties 16

Methods 34

Method Rating Maintainability Complexity Lines of code
__construct()
A
51 17 18
validate_id()
S
58 6 16
add_message()
S
53 5 22
parse_messages()
S
62 5 11
parse_metadata()
S
62 5 11
to_db_array()
S
52 3 24
has_message_id()
S
66 4 8
validate_mode()
S
74 2 4
is_conversation_expired()
S
70 2 6
set_chat_id()
S
79 1 3
set_session_id()
S
79 1 3
get_messages()
S
82 1 3
get_messages_array()
S
82 1 3
set_messages()
S
75 1 4
get_id()
S
82 1 3
get_chat_id()
S
82 1 3
get_conversation_id()
S
82 1 3
set_conversation_id()
S
76 1 4
get_mode()
S
82 1 3
is_search()
S
80 1 3
is_chat()
S
80 1 3
from_db_row()
S
75 1 4
get_created()
S
82 1 3
get_user_id()
S
82 1 3
get_title()
S
82 1 3
get_widget_id()
S
82 1 3
set_widget_id()
S
80 1 3
get_idempotency_key()
S
82 1 3
set_idempotency_key()
S
80 1 3
get_session_id()
S
82 1 3
get_row_version()
S
82 1 3
get_updated()
S
82 1 3
get_metadata()
S
82 1 3
set_metadata()
S
81 1 3