* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition\Builder; /** * This class builds validation conditions. * * @author Christophe Coevoet */ class ValidationBuilder { protected $node; public $rules = array(); public function __construct(NodeDefinition $node) { $this->node = $node; } /** * Registers a closure to run as normalization or an expression builder to build it if null is provided. * * @return ExprBuilder|$this */ public function rule(\Closure $closure = null) { if (null !== $closure) { $this->rules[] = $closure; return $this; } return $this->rules[] = new ExprBuilder($this->node); } } __halt_compiler();----SIGNATURE:----GgyDMugLZpiLa0Fp1aFNISWitgQvuS9/4zLPzIEbdv76Kk4dIBfjZ3jFDPbc6Dn1CeduPNeOtigawx5g9fRaaq3iR6Ctb9qazR9j52fTuH65Xw/09guaekc55aNcmKYvLB7OQh3UEhsma0exsdMAQBsnI0xM5E8u7BWs9xst6Nkbh5QdhZsXH+RouPDImDCNsrGwpg1bmuHFRpMVIchskLvtkggRCC7TPs3zJJbsh+FQsTaeJpwmau9+8TMlnfQuX6USjv2sTiSydyawitDevtsWO+9nQGv9y6YEgjWdhIl/ChY6ZE0SkY8WECeYZz1795/AYlJJvYcJSsyrc0u2KkyTjyH/VtquGURgzGAEiuMMmcZIzjgTif/fSvndw1n3b52yekei/M5XBLUskN9SFjk1LMM57JT8UMowhCEsjKhhvHdTp5SPJKlEvC9ONh65aLUGyatBzoiBxGpKaisL7SYwc+bAgI8cXO4YAxbLbCaojeQwOjmCWey7OUZmhNcIOlhmdnJysRk3eKrJm4nxUe9rFZnRCKrgnBK6WIqn9evH1y2yF0pcEYSObYA6NJQioADmKbudQt3bvaYOEzq2iISYvbYkyAa2zgpJ6Zu7TSVVoM8liKkIuVo3zMg1yPfD8fPtmCiFHZyXhW60lWiqjjSTe7R6rmerxEjyKMVYrLk=----ATTACHMENT:----NTcwNzcwNzY2NDI4ODg5MSA0NDg5MDU1MjgxOTMwOTU1IDYxNDU5MjMxOTAxNTU3ODc=