8a4bfdf1290c88aa29da83a5df30c1751094c74f
[yaffs-website] / vendor / league / container / src / Definition / DefinitionInterface.php
1 <?php
2
3 namespace League\Container\Definition;
4
5 interface DefinitionInterface
6 {
7     /**
8      * Handle instantiation and manipulation of value and return.
9      *
10      * @param  array $args
11      * @return mixed
12      */
13     public function build(array $args = []);
14
15     /**
16      * Add an argument to be injected.
17      *
18      * @param  mixed $arg
19      * @return $this
20      */
21     public function withArgument($arg);
22
23     /**
24      * Add multiple arguments to be injected.
25      *
26      * @param  array $args
27      * @return $this
28      */
29     public function withArguments(array $args);
30 }