$44 GRAYBYTE WORDPRESS FILE MANAGER $85

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php53/usr/share/pear/Symfony/Component/Config/Definition/Builder/

HOME
Current File : /opt/alt/php53/usr/share/pear/Symfony/Component/Config/Definition/Builder//ValidationBuilder.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 <[email protected]>
 */
class ValidationBuilder
{
    protected $node;
    public $rules = array();

    /**
     * Constructor
     *
     * @param NodeDefinition $node The related node
     */
    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.
     *
     * @param \Closure $closure
     *
     * @return ExprBuilder|ValidationBuilder
     */
    public function rule(\Closure $closure = null)
    {
        if (null !== $closure) {
            $this->rules[] = $closure;

            return $this;
        }

        return $this->rules[] = new ExprBuilder($this->node);
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.55 PM
root / root
0755
ArrayNodeDefinition.php
14.242 KB
18 Dec 2019 11.20 AM
root / root
0644
BooleanNodeDefinition.php
0.923 KB
18 Dec 2019 11.20 AM
root / root
0644
EnumNodeDefinition.php
1.179 KB
18 Dec 2019 11.20 AM
root / root
0644
ExprBuilder.php
5.035 KB
18 Dec 2019 11.20 AM
root / root
0644
FloatNodeDefinition.php
0.743 KB
18 Dec 2019 11.20 AM
root / root
0644
IntegerNodeDefinition.php
0.754 KB
18 Dec 2019 11.20 AM
root / root
0644
MergeBuilder.php
1.37 KB
18 Dec 2019 11.20 AM
root / root
0644
NodeBuilder.php
5.924 KB
18 Dec 2019 11.20 AM
root / root
0644
NodeDefinition.php
7.234 KB
18 Dec 2019 11.20 AM
root / root
0644
NodeParentInterface.php
0.436 KB
18 Dec 2019 11.20 AM
root / root
0644
NormalizationBuilder.php
1.551 KB
18 Dec 2019 11.20 AM
root / root
0644
NumericNodeDefinition.php
1.586 KB
18 Dec 2019 11.20 AM
root / root
0644
ParentNodeDefinitionInterface.php
0.593 KB
18 Dec 2019 11.20 AM
root / root
0644
ScalarNodeDefinition.php
0.716 KB
18 Dec 2019 11.20 AM
root / root
0644
TreeBuilder.php
1.638 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidationBuilder.php
1.089 KB
18 Dec 2019 11.20 AM
root / root
0644
VariableNodeDefinition.php
1.625 KB
18 Dec 2019 11.20 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF