ICanBoogie
  • Documentation
  • API Reference
  • Errors 2.0.x
Namespaces
  • ICanBoogie
Classes
  • Error
  • ErrorCollection
  • ErrorCollectionIterator
  • Errors
Interfaces
  • RenderError

Class ErrorCollectionIterator

Iterates over an error collection and return rendered errors.

ICanBoogie\ErrorCollectionIterator implements IteratorAggregate
Namespace: ICanBoogie
Located at ErrorCollectionIterator.php

Methods summary

public __construct( ICanBoogie\ErrorCollection $collection, callable $render_error = null )

Parameters

$collection
$render_error
public getIterator( void )

Inheritdoc

Implementation of

IteratorAggregate::getIterator()
protected render_error( ICanBoogie\Error $error, string $attribute ) : string

Renders an error into a string.

Renders an error into a string.

Parameters

$error
$attribute

Returns

string
Errors 2.0.x – Check on GitHub – API documentation generated by ApiGen