acelot/resolver

View on GitHub
src/DefinitionInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace Acelot\Resolver;

use Acelot\Resolver\Exception\DefinitionException;

interface DefinitionInterface
{
    /**
     * Is definition result must be shared between calls.
     *
     * @return bool
     */
    public function isShared(): bool;

    /**
     * Resolves the definition.
     *
     * @param ResolverInterface $resolver
     *
     * @return mixed
     * @throws DefinitionException
     */
    public function resolve(ResolverInterface $resolver);
}