5 * @link http://php-di.org/
6 * @copyright Matthieu Napoli (http://mnapoli.fr/)
7 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
10 namespace DI\Definition\Helper;
12 use DI\Definition\ValueDefinition;
15 * Helps defining a value.
17 * @author Matthieu Napoli <matthieu@mnapoli.fr>
19 class ValueDefinitionHelper implements DefinitionHelper
29 public function __construct($value)
31 $this->value = $value;
35 * @param string $entryName Container entry name
36 * @return ValueDefinition
38 public function getDefinition($entryName)
40 return new ValueDefinition($entryName, $this->value);