PHP Class Plum\Plum\Result

Author: Florian Eckerstorfer ([email protected])
Show file Open project: plumphp/plum Class Usage Examples

Public Methods

Method Description
addException ( Exception $exception ) : Result
getErrorCount ( ) : integer
getExceptions ( ) : Exception[]
getItemWriteCount ( ) : integer Returns the item write count of the result. This counter is incremented every time an item is written. Every item can only increase this counter by 1. For example, when 3 items are written to 2 writers each then the item write count will be 3.
getReadCount ( ) : integer
getWriteCount ( ) : integer Returns the write count of the result. This counter is incremented every time an item is written to a writer. If an item is written to multiple writers, the counter is increased multiple times for every item. For example, when 3 items are written to 2 writers each then the write count will be 6.
incItemWriteCount ( ) : Result
incReadCount ( ) : Result
incWriteCount ( ) : Result

Method Details

addException() public method

public addException ( Exception $exception ) : Result
$exception Exception
return Result

getErrorCount() public method

public getErrorCount ( ) : integer
return integer

getExceptions() public method

public getExceptions ( ) : Exception[]
return Exception[]

getItemWriteCount() public method

Returns the item write count of the result. This counter is incremented every time an item is written. Every item can only increase this counter by 1. For example, when 3 items are written to 2 writers each then the item write count will be 3.
public getItemWriteCount ( ) : integer
return integer

getReadCount() public method

public getReadCount ( ) : integer
return integer

getWriteCount() public method

Returns the write count of the result. This counter is incremented every time an item is written to a writer. If an item is written to multiple writers, the counter is increased multiple times for every item. For example, when 3 items are written to 2 writers each then the write count will be 6.
public getWriteCount ( ) : integer
return integer

incItemWriteCount() public method

public incItemWriteCount ( ) : Result
return Result

incReadCount() public method

public incReadCount ( ) : Result
return Result

incWriteCount() public method

public incWriteCount ( ) : Result
return Result