* @copyright 2007-2019 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA */ namespace PrestaShop\Module\StFacetedSearch\Hook; use Db; use Context; use StFacetedsearch; abstract class AbstractHook { const AVAILABLE_HOOKS = []; /** * @var Context */ protected $context; /** * @var StFacetedsearch */ protected $module; /** * @var Db */ protected $database; public function __construct(StFacetedsearch $module) { $this->module = $module; $this->context = $module->getContext(); $this->database = $module->getDatabase(); } /** * @return array */ public function getAvailableHooks() { return static::AVAILABLE_HOOKS; } }