This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection/Parameter.php

36 lines
642 B
PHP
Raw Normal View History

2010-01-04 14:26:20 +00:00
<?php
/*
* This file is part of the Symfony package.
2010-01-04 14:26:20 +00:00
*
* (c) Fabien Potencier <fabien@symfony.com>
2010-01-04 14:26:20 +00:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2010-01-04 14:26:20 +00:00
*/
namespace Symfony\Component\DependencyInjection;
2010-01-04 14:26:20 +00:00
/**
* Parameter represents a parameter reference.
*
* @author Fabien Potencier <fabien@symfony.com>
2010-01-04 14:26:20 +00:00
*/
class Parameter
{
private $id;
2010-01-04 14:26:20 +00:00
2017-10-28 19:15:32 +01:00
public function __construct(string $id)
{
$this->id = $id;
}
2010-01-04 14:26:20 +00:00
/**
* @return string The parameter key
*/
public function __toString()
{
2017-10-28 19:15:32 +01:00
return $this->id;
}
2010-01-04 14:26:20 +00:00
}