class UserMetadataUpdater

Methods

subscribe(Dispatcher $events)

No description

whenPostWasPosted(PostWasPosted $event)

No description

whenPostWasDeleted(PostWasDeleted $event)

No description

whenPostWasHidden(PostWasHidden $event)

No description

whenPostWasRestored(PostWasRestored $event)

No description

updateCommentsCount(Post $post, int $amount)

No description

updateDiscussionsCount(Discussion $discussion, int $amount)

No description

Details

subscribe(Dispatcher $events)

Parameters

Dispatcher $events

whenPostWasPosted(PostWasPosted $event)

Parameters

PostWasPosted $event

whenPostWasDeleted(PostWasDeleted $event)

Parameters

PostWasDeleted $event

whenPostWasHidden(PostWasHidden $event)

Parameters

PostWasHidden $event

whenPostWasRestored(PostWasRestored $event)

Parameters

PostWasRestored $event

whenDiscussionWasStarted(DiscussionWasStarted $event)

Parameters

DiscussionWasStarted $event

whenDiscussionWasDeleted(DiscussionWasDeleted $event)

Parameters

DiscussionWasDeleted $event

protected updateCommentsCount(Post $post, int $amount)

Parameters

Post $post
int $amount

protected updateDiscussionsCount(Discussion $discussion, int $amount)

Parameters

Discussion $discussion
int $amount