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)

No description

Parameters

$conversationID

private Connection getConnection()

No description

Return Value

Connection

private assignAverage(Block $block, $average)

No description

Parameters

Block $block
$average