* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Notification\Command; use PrestaShop\PrestaShop\Core\Domain\Notification\Exception\NotificationException; use PrestaShop\PrestaShop\Core\Domain\Notification\ValueObject\Type; /** * Updates the last notification element from a given type seen by the employee */ class UpdateEmployeeNotificationLastElementCommand { /** * @var Type */ private $type; /** * @param string $type * * @throws NotificationException */ public function __construct(string $type) { $this->type = new Type($type); } /** * @return Type */ public function getType() { return $this->type; } }