Webiny\Component\Entity\Attribute\Validation\ValidationException::getIterator PHP Метод

getIterator() публичный Метод

Retrieve an external iterator
С версии: 5.0.0
public getIterator ( ) : Traversable
Результат Traversable An instance of an object implementing Iterator or Traversable
    public function getIterator()
    {
        if (!count($this->errors)) {
            $this->errors[$this->attribute] = $this->getMessage();
        }
        return new \ArrayIterator($this->errors);
    }