CoreFiles by mySites.guru
MetadataInterface.php62 lines, 1,512 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
04bdab3738c86d5aec51909dd79e2483
sha1
b839430431e6d35123a07f70010f971423503fdd
sha256
77e78b24a63663d465f076d4972584026dbcd2a5819f02e2732042167115f12a
<?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\Validator\Mapping;

use Symfony\Component\Validator\Constraint;

/**
 * A container for validation metadata.
 *
 * Most importantly, the metadata stores the constraints against which an object
 * and its properties should be validated.
 *
 * Additionally, the metadata stores whether objects should be validated
 * against their class' metadata and whether traversable objects should be
 * traversed or not.
 *
 * @author Bernhard Schussek <[email protected]>
 *
 * @see CascadingStrategy
 * @see TraversalStrategy
 */
interface MetadataInterface
{
    /**
     * Returns the strategy for cascading objects.
     *
     * @see CascadingStrategy
     */
    public function getCascadingStrategy(): int;

    /**
     * Returns the strategy for traversing traversable objects.
     *
     * @see TraversalStrategy
     */
    public function getTraversalStrategy(): int;

    /**
     * Returns all constraints of this element.
     *
     * @return Constraint[]
     */
    public function getConstraints(): array;

    /**
     * Returns all constraints for a given validation group.
     *
     * @param string $group The validation group
     *
     * @return Constraint[]
     */
    public function findConstraints(string $group): array;
}

The same content is in 133 releases, Joomla 5.1.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.