• File: SelfResolvingDefinition.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/elementor-pro/vendor_prefixed/php-di/php-di/src/Definition/SelfResolvingDefinition.php
  • Date Modified: 12/04/2024 10:58 AM
  • File size: 580 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

declare (strict_types=1);
namespace ElementorProDeps\DI\Definition;

use ElementorProDeps\Psr\Container\ContainerInterface;
/**
 * Describes a definition that can resolve itself.
 *
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
 */
interface SelfResolvingDefinition
{
    /**
     * Resolve the definition and return the resulting value.
     *
     * @return mixed
     */
    public function resolve(ContainerInterface $container);
    /**
     * Check if a definition can be resolved.
     */
    public function isResolvable(ContainerInterface $container) : bool;
}