* @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\Query; use PrestaShop\PrestaShop\Core\Domain\Employee\Exception\InvalidEmployeeIdException; use PrestaShop\PrestaShop\Core\Domain\Employee\ValueObject\EmployeeId; /** * This Query return the last Notifications elements */ class GetNotificationLastElements { /** * @var EmployeeId */ private $employeeId; /** * GetNotificationLastElements constructor. * * @param int $employeeId * * @throws InvalidEmployeeIdException */ public function __construct(int $employeeId) { $this->employeeId = new EmployeeId($employeeId); } /** * @return EmployeeId */ public function getEmployeeId(): EmployeeId { return $this->employeeId; } }