* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Security\Command; use PrestaShop\PrestaShop\Core\Domain\Security\ValueObject\EmployeeSessionId; /** * Class DeleteEmployeeSessionCommand is a command to delete employee session by given id. */ class DeleteEmployeeSessionCommand { /** * @var EmployeeSessionId */ private $sessionId; /** * @param int $sessionId */ public function __construct(int $sessionId) { $this->sessionId = new EmployeeSessionId($sessionId); } /** * @return EmployeeSessionId */ public function getEmployeeSessionId(): EmployeeSessionId { return $this->sessionId; } }