interface report_handler_interface

Methods

null
add_report(int $id, int $reason_id, string $report_text, int $user_notify)

Reports a message

null
validate_report_request(int $id)

Checks if the message is reportable

Details

at line 31
null add_report(int $id, int $reason_id, string $report_text, int $user_notify)

Reports a message

Parameters

int $id
int $reason_id
string $report_text
int $user_notify

Return Value

null

Exceptions

empty_report_exception
already_reported_exception
entity_not_found_exception
invalid_report_exception

at line 42
null validate_report_request(int $id)

Checks if the message is reportable

Parameters

int $id

Return Value

null

Exceptions

already_reported_exception
entity_not_found_exception
invalid_report_exception