* @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\SqlManagement\Query; use PrestaShop\PrestaShop\Core\Domain\SqlManagement\Exception\SqlRequestException; use PrestaShop\PrestaShop\Core\Domain\SqlManagement\ValueObject\SqlRequestId; /** * Class GetSqlRequestForEditingQuery gets SqlRequest data that can be edited. */ class GetSqlRequestForEditing { /** * @var SqlRequestId */ private $requestSqlId; /** * @param int $requestSqlId * * @throws SqlRequestException */ public function __construct($requestSqlId) { $this->requestSqlId = new SqlRequestId($requestSqlId); } /** * @return SqlRequestId */ public function getRequestSqlId() { return $this->requestSqlId; } }