Open Journal Systems  3.3.0
HistoryBatch.php
1 <?php
2 
3 namespace Guzzle\Batch;
4 
10 {
12  protected $history = array();
13 
14  public function add($item)
15  {
16  $this->history[] = $item;
17  $this->decoratedBatch->add($item);
18 
19  return $this;
20  }
21 
27  public function getHistory()
28  {
29  return $this->history;
30  }
31 
35  public function clearHistory()
36  {
37  $this->history = array();
38  }
39 }
Guzzle\Batch\HistoryBatch\clearHistory
clearHistory()
Definition: HistoryBatch.php:38
Guzzle\Batch
Definition: AbstractBatchDecorator.php:3
Guzzle\Batch\HistoryBatch
Definition: HistoryBatch.php:9
Guzzle\Batch\HistoryBatch\add
add($item)
Definition: HistoryBatch.php:17
Guzzle\Batch\HistoryBatch\getHistory
getHistory()
Definition: HistoryBatch.php:30
Guzzle\Batch\HistoryBatch\$history
$history
Definition: HistoryBatch.php:15
Guzzle\Batch\AbstractBatchDecorator
Definition: AbstractBatchDecorator.php:8