* @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\Hook\Query; use PrestaShop\PrestaShop\Core\Domain\Hook\ValueObject\HookId; /** * Get current status (enabled/disabled) for a given hook */ class GetHookStatus { /** * @var HookId */ private $hookId; /** * GetHookStatus constructor. * * @param int $hookId */ public function __construct(int $hookId) { $this->hookId = new HookId($hookId); } /** * @return HookId */ public function getHookId(): HookId { return $this->hookId; } }