EPKB_AI_Conversation_Model B

Total Complexity 78
Dependencies 4
Dependents 3
Total lines 437
Lines of code 205
Logical lines of code 100
Comment lines 152
Methods 35
Properties 15

Methods 35

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