equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace Symfony\Component\DependencyInjection; |
|
13 |
|
14 /** |
|
15 * Parameter represents a parameter reference. |
|
16 * |
|
17 * @author Fabien Potencier <fabien@symfony.com> |
|
18 * |
|
19 * @api |
|
20 */ |
|
21 class Parameter |
|
22 { |
|
23 private $id; |
|
24 |
|
25 /** |
|
26 * Constructor. |
|
27 * |
|
28 * @param string $id The parameter key |
|
29 */ |
|
30 public function __construct($id) |
|
31 { |
|
32 $this->id = $id; |
|
33 } |
|
34 |
|
35 /** |
|
36 * __toString. |
|
37 * |
|
38 * @return string The parameter key |
|
39 */ |
|
40 public function __toString() |
|
41 { |
|
42 return (string) $this->id; |
|
43 } |
|
44 } |