ICanBoogie/Errors 2.0.x
  • Namespace
  • Class

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( )

Inheritdoc

Implementation of

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

Renders an error into a string.

Renders an error into a string.

Parameters

$error
$attribute

Returns

string
ICanBoogie/Errors 2.0.x API documentation generated by ApiGen