Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Container/ContextualBindingBuilder.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Container;
4
5 interface ContextualBindingBuilder
6 {
7 /**
8 * Define the abstract target that depends on the context.
9 *
10 * @param string $abstract
11 * @return $this
12 */
13 public function needs($abstract);
14
15 /**
16 * Define the implementation for the contextual binding.
17 *
18 * @param \Closure|string|array $implementation
19 * @return $this
20 */
21 public function give($implementation);
22
23 /**
24 * Define tagged services to be used as the implementation for the contextual binding.
25 *
26 * @param string $tag
27 * @return $this
28 */
29 public function giveTagged($tag);
30
31 /**
32 * Specify the configuration item to bind as a primitive.
33 *
34 * @param string $key
35 * @param mixed $default
36 * @return $this
37 */
38 public function giveConfig($key, $default = null);
39 }