class AnnouncementService implements ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected EntityManager $entityManager
protected Checker $checker
protected User $user

Methods

setApplication(Application $app)

Setter method for the application

__construct(EntityManager $entityManager, Checker $checker, User $user)

No description

createAnnouncementIfNotExists(string $handle)

No description

array
getAnnouncementsForUser(User $user)

No description

BroadcastInterface|null
getBroadcast()

No description

markAnnouncementAsViewed(string $announcementHandle, User $user)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(EntityManager $entityManager, Checker $checker, User $user)

No description

Parameters

EntityManager $entityManager
Checker $checker
User $user

Announcement createAnnouncementIfNotExists(string $handle)

No description

Parameters

string $handle

Return Value

Announcement

protected array getAnnouncementsForUser(User $user)

No description

Parameters

User $user

Return Value

array

BroadcastInterface|null getBroadcast()

No description

Return Value

BroadcastInterface|null

markAnnouncementAsViewed(string $announcementHandle, User $user)

No description

Parameters

string $announcementHandle
User $user