<?php
namespace OxygenApp\Hooks;
if ( ! defined( 'ABSPATH' ) ) exit;


class HooksFactory {

    private const HOOKS_CLASSES = ['ActionRegisterCpt', 'ActionMetaBoxes', 'ActionEnqueueScripts',
    'ActionTaxonomie', 'ActionSavePost', 'ActionAdminNotice', 'ActionAdminMenu', 'ActionSettings',
    'FilterTemplateInclude', 'FiltersCustom', 'HookManageCptColumns', 'ActionRestApi', 'ActionAjax'];

    static function registerHooks(): void {

        foreach (self::HOOKS_CLASSES as $className) {
            $classFull = 'OxygenApp\Hooks\\' . $className;
            if (class_exists($classFull) && method_exists($classFull, 'register')) {
                $classFull::register();
            }
        }
    }
}