AbortedMultiExecException.php 665 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Transaction;
  11. use Predis\PredisException;
  12. class AbortedMultiExecException extends PredisException
  13. {
  14. private $_transaction;
  15. public function __construct(MultiExecContext $transaction, $message, $code = null)
  16. {
  17. parent::__construct($message, $code);
  18. $this->_transaction = $transaction;
  19. }
  20. public function getTransaction()
  21. {
  22. return $this->_transaction;
  23. }
  24. }