PHP Class Respect\Validation\Exceptions\NestedValidationException

Inheritance: extends ValidationException, implements IteratorAggregat\IteratorAggregate
Datei anzeigen Open project: respect/validation Class Usage Examples

Public Methods

Method Description
addRelated ( ValidationException $exception ) : self
findMessages ( array $paths ) : self
findRelated ( $path ) : Exception
getFullMessage ( ) : string
getIterator ( ) : SplObjectStorage
getMessages ( ) : array
getRelated ( ) : SplObjectStorage
getRelatedByName ( $name ) : ValidationException
setParam ( string $name, mixed $value ) : self
setRelated ( array $exceptions ) : self

Private Methods

Method Description
getExceptionForPath ( string $path, ValidationException $exception ) : ValidationException
getRecursiveIterator ( ) : RecursiveIteratorIterator
isRelated ( $name, ValidationException $exception ) : boolean

Method Details

addRelated() public method

public addRelated ( ValidationException $exception ) : self
$exception ValidationException
return self

findMessages() public method

public findMessages ( array $paths ) : self
$paths array
return self

findRelated() public method

public findRelated ( $path ) : Exception
return Exception

getFullMessage() public method

public getFullMessage ( ) : string
return string

getIterator() public method

public getIterator ( ) : SplObjectStorage
return SplObjectStorage

getMessages() public method

public getMessages ( ) : array
return array

getRelated() public method

public getRelated ( ) : SplObjectStorage
return SplObjectStorage

getRelatedByName() public method

public getRelatedByName ( $name ) : ValidationException
return ValidationException

setParam() public method

public setParam ( string $name, mixed $value ) : self
$name string
$value mixed
return self

setRelated() public method

public setRelated ( array $exceptions ) : self
$exceptions array
return self