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\StringDefinition;
16 * @author Matthieu Napoli <matthieu@mnapoli.fr>
18 class StringDefinitionHelper implements DefinitionHelper
25 public function __construct($expression)
27 $this->expression = $expression;
31 * @param string $entryName Container entry name
33 * @return StringDefinition
35 public function getDefinition($entryName)
37 return new StringDefinition($entryName, $this->expression);