$81 GRAYBYTE WORDPRESS FILE MANAGER $77

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.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

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

HOME
Current File : /opt/alt/php53/usr/share/pear/Symfony/Component/Validator//ConstraintViolationList.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\Validator;

/**
 * Default implementation of {@ConstraintViolationListInterface}.
 *
 * @author Bernhard Schussek <[email protected]>
 */
class ConstraintViolationList implements \IteratorAggregate, ConstraintViolationListInterface
{
    /**
     * @var ConstraintViolationInterface[]
     */
    private $violations = array();

    /**
     * Creates a new constraint violation list.
     *
     * @param ConstraintViolationInterface[] $violations The constraint violations to add to the list
     */
    public function __construct(array $violations = array())
    {
        foreach ($violations as $violation) {
            $this->add($violation);
        }
    }

    /**
     * Converts the violation into a string for debugging purposes.
     *
     * @return string The violation as string.
     */
    public function __toString()
    {
        $string = '';

        foreach ($this->violations as $violation) {
            $string .= $violation."\n";
        }

        return $string;
    }

    /**
     * {@inheritDoc}
     */
    public function add(ConstraintViolationInterface $violation)
    {
        $this->violations[] = $violation;
    }

    /**
     * {@inheritDoc}
     */
    public function addAll(ConstraintViolationListInterface $otherList)
    {
        foreach ($otherList as $violation) {
            $this->violations[] = $violation;
        }
    }

    /**
     * {@inheritDoc}
     */
    public function get($offset)
    {
        if (!isset($this->violations[$offset])) {
            throw new \OutOfBoundsException(sprintf('The offset "%s" does not exist.', $offset));
        }

        return $this->violations[$offset];
    }

    /**
     * {@inheritDoc}
     */
    public function has($offset)
    {
        return isset($this->violations[$offset]);
    }

    /**
     * {@inheritDoc}
     */
    public function set($offset, ConstraintViolationInterface $violation)
    {
        $this->violations[$offset] = $violation;
    }

    /**
     * {@inheritDoc}
     */
    public function remove($offset)
    {
        unset($this->violations[$offset]);
    }

    /**
     * {@inheritDoc}
     */
    public function getIterator()
    {
        return new \ArrayIterator($this->violations);
    }

    /**
     * {@inheritDoc}
     */
    public function count()
    {
        return count($this->violations);
    }

    /**
     * {@inheritDoc}
     */
    public function offsetExists($offset)
    {
        return $this->has($offset);
    }

    /**
     * {@inheritDoc}
     */
    public function offsetGet($offset)
    {
        return $this->get($offset);
    }

    /**
     * {@inheritDoc}
     */
    public function offsetSet($offset, $violation)
    {
        if (null === $offset) {
            $this->add($violation);
        } else {
            $this->set($offset, $violation);
        }
    }

    /**
     * {@inheritDoc}
     */
    public function offsetUnset($offset)
    {
        $this->remove($offset);
    }
}


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
Constraints
--
3 Mar 2024 10.55 PM
root / root
0755
Exception
--
3 Mar 2024 10.55 PM
root / root
0755
Mapping
--
3 Mar 2024 10.55 PM
root / root
0755
Resources
--
3 Mar 2024 10.55 PM
root / root
0755
ClassBasedInterface.php
0.559 KB
18 Dec 2019 11.20 AM
root / root
0644
Constraint.php
6.638 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintValidator.php
0.684 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintValidatorFactory.php
2.243 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintValidatorFactoryInterface.php
0.757 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintValidatorInterface.php
0.878 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintViolation.php
4.232 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintViolationInterface.php
4.251 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintViolationList.php
3.169 KB
18 Dec 2019 11.20 AM
root / root
0644
ConstraintViolationListInterface.php
1.961 KB
18 Dec 2019 11.20 AM
root / root
0644
DefaultTranslator.php
5.122 KB
18 Dec 2019 11.20 AM
root / root
0644
ExecutionContext.php
8.296 KB
18 Dec 2019 11.20 AM
root / root
0644
ExecutionContextInterface.php
12.065 KB
18 Dec 2019 11.20 AM
root / root
0644
GlobalExecutionContextInterface.php
1.892 KB
18 Dec 2019 11.20 AM
root / root
0644
GroupSequenceProviderInterface.php
0.583 KB
18 Dec 2019 11.20 AM
root / root
0644
MetadataFactoryInterface.php
0.967 KB
18 Dec 2019 11.20 AM
root / root
0644
MetadataInterface.php
2.823 KB
18 Dec 2019 11.20 AM
root / root
0644
ObjectInitializerInterface.php
0.798 KB
18 Dec 2019 11.20 AM
root / root
0644
PropertyMetadataContainerInterface.php
1.181 KB
18 Dec 2019 11.20 AM
root / root
0644
PropertyMetadataInterface.php
1.229 KB
18 Dec 2019 11.20 AM
root / root
0644
Validation.php
1.072 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidationVisitor.php
6.174 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidationVisitorInterface.php
3.465 KB
18 Dec 2019 11.20 AM
root / root
0644
Validator.php
6.524 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidatorBuilder.php
9.846 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidatorBuilderInterface.php
5.37 KB
18 Dec 2019 11.20 AM
root / root
0644
ValidatorInterface.php
3.496 KB
18 Dec 2019 11.20 AM
root / root
0644
autoloader.php
0.331 KB
18 Dec 2019 11.20 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF