PHP Class Elastica\Bulk\ResponseSet

Inheritance: extends Elastica\Response, implements Iterator, implements Countable
Mostrar archivo Open project: ruflin/elastica Class Usage Examples

Protected Properties

Property Type Description
$_bulkResponses Elastica\Bulk\Response[]
$_position integer

Public Methods

Method Description
__construct ( Response $response, array $bulkResponses )
count ( ) : integer
current ( ) : boolean | Elastica\Bulk\Response
getBulkResponses ( ) : Elastica\Bulk\Response[]
getError ( ) : string Returns first found error.
getFullError ( ) : array | string Returns first found error (full array).
hasError ( ) : boolean
isOk ( ) : boolean
key ( ) : integer
next ( )
rewind ( )
valid ( ) : boolean

Method Details

__construct() public method

public __construct ( Response $response, array $bulkResponses )
$response Elastica\Response
$bulkResponses array

count() public method

public count ( ) : integer
return integer

current() public method

public current ( ) : boolean | Elastica\Bulk\Response
return boolean | Elastica\Bulk\Response

getBulkResponses() public method

public getBulkResponses ( ) : Elastica\Bulk\Response[]
return Elastica\Bulk\Response[]

getError() public method

Returns first found error.
public getError ( ) : string
return string

getFullError() public method

Returns first found error (full array).
public getFullError ( ) : array | string
return array | string

hasError() public method

public hasError ( ) : boolean
return boolean

isOk() public method

public isOk ( ) : boolean
return boolean

key() public method

public key ( ) : integer
return integer

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( ) : boolean
return boolean

Property Details

$_bulkResponses protected_oe property

protected Response[],Elastica\Bulk $_bulkResponses
return Elastica\Bulk\Response[]

$_position protected_oe property

protected int $_position
return integer