Notification domain

Notification Commands

UpdateEmployeeNotificationLastElementCommand

PrestaShop\PrestaShop\Core\Domain\Notification\Command\UpdateEmployeeNotificationLastElementCommand Updates the last notification element from a given type seen by the employee

Command details
Constructor parameters
  • $string $type
Handler class PrestaShop\PrestaShop\Adapter\Notification\CommandHandler\UpdateEmployeeNotificationLastElementHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\CommandHandler\UpdateEmployeeNotificationLastElementCommandHandlerInterface
Return type void

Notification Queries

GetNotificationLastElements

PrestaShop\PrestaShop\Core\Domain\Notification\Query\GetNotificationLastElements This Query return the last Notifications elements

Query details
Constructor parameters
  • $int $employeeId
Handler class PrestaShop\PrestaShop\Adapter\Notification\QueryHandler\GetNotificationLastElementsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\QueryHandler\GetNotificationLastElementsHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Notification\QueryResult\NotificationsResults