PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.2
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.2
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / classes / Dependencies / League / Container / Definition / DefinitionInterface.php

DefinitionInterface.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 2.2, at classes/Dependencies/League/Container/Definition/DefinitionInterface.php

121 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace Imagify\Dependencies\League\Container\Definition;
4
5 use Imagify\Dependencies\League\Container\ContainerAwareInterface;
6
7 interface DefinitionInterface extends ContainerAwareInterface
8 {
9 /**
10 * Add a tag to the definition.
11 *
12 * @param string $tag
13 *
14 * @return self
15 */
16 public function addTag(string $tag) : DefinitionInterface;
17
18 /**
19 * Does the definition have a tag?
20 *
21 * @param string $tag
22 *
23 * @return boolean
24 */
25 public function hasTag(string $tag) : bool;
26
27 /**
28 * Set the alias of the definition.
29 *
30 * @param string $id
31 *
32 * @return DefinitionInterface
33 */
34 public function setAlias(string $id) : DefinitionInterface;
35
36 /**
37 * Get the alias of the definition.
38 *
39 * @return string
40 */
41 public function getAlias() : string;
42
43 /**
44 * Set whether this is a shared definition.
45 *
46 * @param boolean $shared
47 *
48 * @return self
49 */
50 public function setShared(bool $shared) : DefinitionInterface;
51
52 /**
53 * Is this a shared definition?
54 *
55 * @return boolean
56 */
57 public function isShared() : bool;
58
59 /**
60 * Get the concrete of the definition.
61 *
62 * @return mixed
63 */
64 public function getConcrete();
65
66 /**
67 * Set the concrete of the definition.
68 *
69 * @param mixed $concrete
70 *
71 * @return DefinitionInterface
72 */
73 public function setConcrete($concrete) : DefinitionInterface;
74
75 /**
76 * Add an argument to be injected.
77 *
78 * @param mixed $arg
79 *
80 * @return self
81 */
82 public function addArgument($arg) : DefinitionInterface;
83
84 /**
85 * Add multiple arguments to be injected.
86 *
87 * @param array $args
88 *
89 * @return self
90 */
91 public function addArguments(array $args) : DefinitionInterface;
92
93 /**
94 * Add a method to be invoked
95 *
96 * @param string $method
97 * @param array $args
98 *
99 * @return self
100 */
101 public function addMethodCall(string $method, array $args = []) : DefinitionInterface;
102
103 /**
104 * Add multiple methods to be invoked
105 *
106 * @param array $methods
107 *
108 * @return self
109 */
110 public function addMethodCalls(array $methods = []) : DefinitionInterface;
111
112 /**
113 * Handle instantiation and manipulation of value and return.
114 *
115 * @param boolean $new
116 *
117 * @return mixed
118 */
119 public function resolve(bool $new = false);
120 }
121