1 | <?php |
||
27 | abstract class AbstractDefinition extends Base implements DefinitionInterface |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @readwrite |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $name; |
||
35 | |||
36 | /** |
||
37 | * @readwrite |
||
38 | * @var Scope |
||
39 | */ |
||
40 | protected $scope; |
||
41 | |||
42 | /** |
||
43 | * @readwrite |
||
44 | * @var ContainerInterface |
||
45 | */ |
||
46 | protected $container; |
||
47 | |||
48 | /** |
||
49 | * Initializes the |
||
50 | * @param array $options |
||
51 | */ |
||
52 | 84 | public function __construct($options = []) |
|
62 | |||
63 | /** |
||
64 | * Gets current definition name |
||
65 | * |
||
66 | * @return mixed |
||
67 | */ |
||
68 | 72 | public function getName() |
|
72 | |||
73 | /** |
||
74 | * Gets the scope for current definition |
||
75 | * |
||
76 | * @return Scope |
||
77 | */ |
||
78 | 50 | public function getScope() |
|
82 | |||
83 | /** |
||
84 | * Sets definition scope |
||
85 | * |
||
86 | * @param Scope $scope The scope type |
||
87 | * @return $this|self |
||
88 | */ |
||
89 | 84 | public function setScope(Scope $scope) |
|
94 | |||
95 | /** |
||
96 | * Set container for this definition |
||
97 | * |
||
98 | * @param ContainerInterface $container |
||
99 | * |
||
100 | * @return $this|self |
||
101 | */ |
||
102 | 74 | public function setContainer(ContainerInterface $container) |
|
107 | |||
108 | /** |
||
109 | * Gets container |
||
110 | * |
||
111 | * @return ContainerInterface |
||
112 | */ |
||
113 | 38 | public function getContainer() |
|
117 | } |
||
118 |