peakphp/framework

View on GitHub
src/Di/Binding/BindingInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Di\Binding;

use Peak\Di\Container;

interface BindingInterface
{
    /**
     * @param Container $container
     * @param array $args
     * @param mixed $explicit
     * @return mixed
     */
    public function resolve(Container $container, array $args = [], $explicit = null);

    /**
     * @return string
     */
    public function getName();

    /**
     * @return int
     */
    public function getType();

    /**
     * @return mixed
     */
    public function getDefinition();


}