PHP Class Elastica\Bulk\ResponseSet

Inheritance: extends Elastica\Response, implements Iterator, implements Countable
Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Protected Properties

Свойство Type Description
$_bulkResponses Elastica\Bulk\Response[]
$_position integer

Méthodes publiques

Méthode 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 méthode

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

count() public méthode

public count ( ) : integer
Résultat integer

current() public méthode

public current ( ) : boolean | Elastica\Bulk\Response
Résultat boolean | Elastica\Bulk\Response

getBulkResponses() public méthode

public getBulkResponses ( ) : Elastica\Bulk\Response[]
Résultat Elastica\Bulk\Response[]

getError() public méthode

Returns first found error.
public getError ( ) : string
Résultat string

getFullError() public méthode

Returns first found error (full array).
public getFullError ( ) : array | string
Résultat array | string

hasError() public méthode

public hasError ( ) : boolean
Résultat boolean

isOk() public méthode

public isOk ( ) : boolean
Résultat boolean

key() public méthode

public key ( ) : integer
Résultat integer

next() public méthode

public next ( )

rewind() public méthode

public rewind ( )

valid() public méthode

public valid ( ) : boolean
Résultat boolean

Property Details

$_bulkResponses protected_oe property

protected Response[],Elastica\Bulk $_bulkResponses
Résultat Elastica\Bulk\Response[]

$_position protected_oe property

protected int $_position
Résultat integer