$85 GRAYBYTE WORDPRESS FILE MANAGER $53

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php54/usr/share/pear/Symfony/Component/Validator/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/Validator//MetadataInterface.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Validator;

/**
 * A container for validation metadata.
 *
 * The container contains constraints that may belong to different validation
 * groups. Constraints for a specific group can be fetched by calling
 * {@link findConstraints}.
 *
 * Implement this interface to add validation metadata to your own metadata
 * layer. Each metadata may have named properties. Each property can be
 * represented by one or more {@link PropertyMetadataInterface} instances that
 * are returned by {@link getPropertyMetadata}. Since
 * <tt>PropertyMetadataInterface</tt> inherits from <tt>MetadataInterface</tt>,
 * each property may be divided into further properties.
 *
 * The {@link accept} method of each metadata implements the Visitor pattern.
 * The method should forward the call to the visitor's
 * {@link ValidationVisitorInterface::visit} method and additionally call
 * <tt>accept()</tt> on all structurally related metadata instances.
 *
 * For example, to store constraints for PHP classes and their properties,
 * create a class <tt>ClassMetadata</tt> (implementing <tt>MetadataInterface</tt>)
 * and a class <tt>PropertyMetadata</tt> (implementing <tt>PropertyMetadataInterface</tt>).
 * <tt>ClassMetadata::getPropertyMetadata($property)</tt> returns all
 * <tt>PropertyMetadata</tt> instances for a property of that class. Its
 * <tt>accept()</tt>-method simply forwards to <tt>ValidationVisitorInterface::visit()</tt>
 * and calls <tt>accept()</tt> on all contained <tt>PropertyMetadata</tt>
 * instances, which themselves call <tt>ValidationVisitorInterface::visit()</tt>
 * again.
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
interface MetadataInterface
{
    /**
     * Implementation of the Visitor design pattern.
     *
     * Calls {@link ValidationVisitorInterface::visit} and then forwards the
     * <tt>accept()</tt>-call to all property metadata instances.
     *
     * @param ValidationVisitorInterface $visitor      The visitor implementing the validation logic.
     * @param mixed                      $value        The value to validate.
     * @param string|string[]            $group        The validation group to validate in.
     * @param string                     $propertyPath The current property path in the validation graph.
     */
    public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath);

    /**
     * Returns all constraints for a given validation group.
     *
     * @param string $group The validation group.
     *
     * @return Constraint[] A list of constraint instances.
     */
    public function findConstraints($group);
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
Constraints
--
31 Aug 2024 7.05 AM
root / root
0755
Exception
--
31 Aug 2024 7.05 AM
root / root
0755
Mapping
--
31 Aug 2024 7.05 AM
root / root
0755
Resources
--
31 Aug 2024 7.05 AM
root / root
0755
ClassBasedInterface.php
0.559 KB
18 Dec 2019 6.22 PM
root / root
0644
Constraint.php
6.638 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintValidator.php
0.684 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintValidatorFactory.php
2.243 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintValidatorFactoryInterface.php
0.757 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintValidatorInterface.php
0.878 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintViolation.php
4.232 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintViolationInterface.php
4.251 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintViolationList.php
3.169 KB
18 Dec 2019 6.22 PM
root / root
0644
ConstraintViolationListInterface.php
1.961 KB
18 Dec 2019 6.22 PM
root / root
0644
DefaultTranslator.php
5.122 KB
18 Dec 2019 6.22 PM
root / root
0644
ExecutionContext.php
8.296 KB
18 Dec 2019 6.22 PM
root / root
0644
ExecutionContextInterface.php
12.065 KB
18 Dec 2019 6.22 PM
root / root
0644
GlobalExecutionContextInterface.php
1.892 KB
18 Dec 2019 6.22 PM
root / root
0644
GroupSequenceProviderInterface.php
0.583 KB
18 Dec 2019 6.22 PM
root / root
0644
MetadataFactoryInterface.php
0.967 KB
18 Dec 2019 6.22 PM
root / root
0644
MetadataInterface.php
2.823 KB
18 Dec 2019 6.22 PM
root / root
0644
ObjectInitializerInterface.php
0.798 KB
18 Dec 2019 6.22 PM
root / root
0644
PropertyMetadataContainerInterface.php
1.181 KB
18 Dec 2019 6.22 PM
root / root
0644
PropertyMetadataInterface.php
1.229 KB
18 Dec 2019 6.22 PM
root / root
0644
Validation.php
1.072 KB
18 Dec 2019 6.22 PM
root / root
0644
ValidationVisitor.php
6.174 KB
18 Dec 2019 6.22 PM
root / root
0644
ValidationVisitorInterface.php
3.465 KB
18 Dec 2019 6.22 PM
root / root
0644
Validator.php
6.524 KB
18 Dec 2019 6.22 PM
root / root
0644
ValidatorBuilder.php
9.846 KB
18 Dec 2019 6.22 PM
root / root
0644
ValidatorBuilderInterface.php
5.37 KB
18 Dec 2019 6.22 PM
root / root
0644
ValidatorInterface.php
3.496 KB
18 Dec 2019 6.22 PM
root / root
0644
autoloader.php
0.331 KB
18 Dec 2019 6.22 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF