Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Provides information about a component referenced within the DI container.
|
---|
5 | * @author Chris Corbyn
|
---|
6 | * @package Crafty
|
---|
7 | */
|
---|
8 | class net_sourceforge_phpcrafty_ComponentReference
|
---|
9 | {
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * The name of the component being referenced.
|
---|
13 | * @var string
|
---|
14 | */
|
---|
15 | private $_componentName;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Create a new ComponentReference for $componentName.
|
---|
19 | * @param string $componentName
|
---|
20 | */
|
---|
21 | public function __construct($componentName)
|
---|
22 | {
|
---|
23 | $this->_componentName = $componentName;
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Get the name of the component referenced.
|
---|
28 | * @return string
|
---|
29 | */
|
---|
30 | public function getComponentName()
|
---|
31 | {
|
---|
32 | return $this->_componentName;
|
---|
33 | }
|
---|
34 |
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.