* @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\Command; use PrestaShop\PrestaShop\Core\Domain\Hook\ValueObject\HookId; /** * Class UpdateHookStatusCommand update a given hook status */ class UpdateHookStatusCommand { /** * @var hookId */ private $hookId; /** * @var bool */ private $status; /** * UpdateHookStatusCommand constructor. * * @param int $hookId * @param bool $status */ public function __construct(int $hookId, bool $status) { $this->hookId = new HookId($hookId); $this->status = $status; } /** * @return HookId */ public function getHookId(): HookId { return $this->hookId; } /** * @return bool */ public function getStatus(): bool { return $this->status; } }