4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Definition\Builder;
14 use Symfony\Component\Config\Definition\IntegerNode;
17 * This class provides a fluent interface for defining an integer node.
19 * @author Jeanmonod David <david.jeanmonod@gmail.com>
21 class IntegerNodeDefinition extends NumericNodeDefinition
24 * Instantiates a Node.
26 * @return IntegerNode The node
28 protected function instantiateNode()
30 return new IntegerNode($this->name, $this->parent, $this->min, $this->max);