class ConversationService (View source)

Class ConversationService Currently manages tracking review aggregates

Properties

protected Connection $connection
protected PageCategory $pageCategory
private DatabaseManager $manager

Methods

__construct(PageCategory $category, DatabaseManager $manager)

ConversationService constructor.

trackReview(Message $message, Block $block)

Track a review on a message

fetchConversationAverage($conversationID)

No description

getConnection()

No description

assignAverage(Block $block, $average)

No description

Details

__construct(PageCategory $category, DatabaseManager $manager)

ConversationService constructor.

Parameters

PageCategory $category
DatabaseManager $manager

trackReview(Message $message, Block $block)

Track a review on a message

Parameters

Message $message
Block $block

private fetchConversationAverage($conversationID)

Parameters

$conversationID

private Connection getConnection()

Return Value

Connection

private assignAverage(Block $block, $average)

Parameters

Block $block
$average