chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Hook/Interfaces/HookObserverInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/* For licensing terms, see /license.txt */

/**
 * This file contains all Hook interfaces and their relation.
 * They are used for Hook classes.
 */

namespace Chamilo\CoreBundle\Hook\Interfaces;

/**
 * Interface HookObserverInterface.
 */
interface HookObserverInterface
{
    /**
     * Return the singleton instance of Hook observer.
     *
     * @return static
     */
    public static function create();

    /**
     * Return the path from the class, needed to store location or autoload later.
     *
     * @return string
     */
    public function getPath();

    /**
     * Return the plugin name where is the Hook Observer.
     *
     * @return string
     */
    public function getPluginName();
}