deep-web-solutions/wordpress-framework-foundations

View on GitHub
src/includes/Services/HandlerAwareInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace DeepWebSolutions\Framework\Foundations\Services;

\defined( 'ABSPATH' ) || exit;

/**
 * Describes a handler-aware-instance.
 *
 * @since   1.0.0
 * @version 1.0.0
 * @author  Antonius Hegyes <a.hegyes@deep-web-solutions.com>
 * @package DeepWebSolutions\WP-Framework\Foundations\Services
 */
interface HandlerAwareInterface {
    /**
     * Gets the current handler instance set on the object.
     *
     * @since   1.0.0
     * @version 1.0.0
     *
     * @return  HandlerInterface
     */
    public function get_handler(): HandlerInterface;

    /**
     * Sets a handler instance on the object.
     *
     * @since   1.0.0
     * @version 1.0.0
     *
     * @param   HandlerInterface    $handler    Handler instance to use from now on.
     */
    public function set_handler( HandlerInterface $handler );
}