Open Journal Systems  3.3.0
BatchTransferException.php
1 <?php
2 
4 
6 use Guzzle\Batch\BatchTransferInterface as TransferStrategy;
7 use Guzzle\Batch\BatchDivisorInterface as DivisorStrategy;
8 
12 class BatchTransferException extends \Exception implements GuzzleException
13 {
15  protected $batch;
16 
18  protected $transferStrategy;
19 
21  protected $divisorStrategy;
22 
24  protected $transferredItems;
25 
33  public function __construct(
34  array $batch,
35  array $transferredItems,
36  \Exception $exception,
37  TransferStrategy $transferStrategy = null,
38  DivisorStrategy $divisorStrategy = null
39  ) {
40  $this->batch = $batch;
41  $this->transferredItems = $transferredItems;
42  $this->transferStrategy = $transferStrategy;
43  $this->divisorStrategy = $divisorStrategy;
44  parent::__construct(
45  'Exception encountered while transferring batch: ' . $exception->getMessage(),
46  $exception->getCode(),
47  $exception
48  );
49  }
50 
56  public function getBatch()
57  {
58  return $this->batch;
59  }
60 
66  public function getTransferredItems()
67  {
69  }
70 
76  public function getTransferStrategy()
77  {
79  }
80 
86  public function getDivisorStrategy()
87  {
89  }
90 }
Guzzle\Batch\BatchTransferInterface
Definition: BatchTransferInterface.php:8
Guzzle\Batch\Exception\BatchTransferException\__construct
__construct(array $batch, array $transferredItems, \Exception $exception, TransferStrategy $transferStrategy=null, DivisorStrategy $divisorStrategy=null)
Definition: BatchTransferException.php:45
Guzzle\Batch\Exception\BatchTransferException\getTransferStrategy
getTransferStrategy()
Definition: BatchTransferException.php:88
Guzzle\Batch\Exception\BatchTransferException\$transferredItems
$transferredItems
Definition: BatchTransferException.php:36
Guzzle\Batch\Exception\BatchTransferException\$transferStrategy
$transferStrategy
Definition: BatchTransferException.php:24
Guzzle\Batch\Exception\BatchTransferException\getBatch
getBatch()
Definition: BatchTransferException.php:68
Guzzle\Common\Exception\GuzzleException
Definition: lib/vendor/guzzle/guzzle/src/Guzzle/Common/Exception/GuzzleException.php:8
Guzzle\Batch\Exception\BatchTransferException\$batch
$batch
Definition: BatchTransferException.php:18
Guzzle\Batch\Exception\BatchTransferException\$divisorStrategy
$divisorStrategy
Definition: BatchTransferException.php:30
Guzzle\Batch\Exception\BatchTransferException
Definition: BatchTransferException.php:12
Guzzle\Batch\BatchDivisorInterface
Definition: BatchDivisorInterface.php:8
Guzzle\Batch\Exception
Definition: BatchTransferException.php:3
Guzzle\Batch\Exception\BatchTransferException\getTransferredItems
getTransferredItems()
Definition: BatchTransferException.php:78
Guzzle\Batch\Exception\BatchTransferException\getDivisorStrategy
getDivisorStrategy()
Definition: BatchTransferException.php:98