PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.0-beta1
Elementor Website Builder – more than just a page builder v3.30.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / vendor_prefixed / dependency-injection / php-di / php-di / src / Annotation / Injectable.php

Injectable.php in Elementor Website Builder – more than just a page builder 3.30.0-beta1, at vendor_prefixed/dependency-injection/php-di/php-di/src/Annotation/Injectable.php

40 lines 686 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare (strict_types=1);
4 namespace ElementorDeps\DI\Annotation;
5
6 /**
7 * "Injectable" annotation.
8 *
9 * Marks a class as injectable
10 *
11 * @api
12 *
13 * @Annotation
14 * @Target("CLASS")
15 *
16 * @author Domenic Muskulus <[email protected]>
17 * @author Matthieu Napoli <[email protected]>
18 */
19 final class Injectable
20 {
21 /**
22 * Should the object be lazy-loaded.
23 * @var bool|null
24 */
25 private $lazy;
26 public function __construct(array $values)
27 {
28 if (isset($values['lazy'])) {
29 $this->lazy = (bool) $values['lazy'];
30 }
31 }
32 /**
33 * @return bool|null
34 */
35 public function isLazy()
36 {
37 return $this->lazy;
38 }
39 }
40