[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorApplicationTransactionNoEffectException 4 extends Exception { 5 6 private $transactions; 7 private $anyEffect; 8 private $hasComment; 9 10 public function __construct(array $transactions, $any_effect, $has_comment) { 11 assert_instances_of($transactions, 'PhabricatorApplicationTransaction'); 12 13 $this->transactions = $transactions; 14 $this->anyEffect = $any_effect; 15 $this->hasComment = $has_comment; 16 17 $message = array(); 18 $message[] = 'Transactions have no effect:'; 19 foreach ($this->transactions as $transaction) { 20 $message[] = ' - '.$transaction->getNoEffectDescription(); 21 } 22 23 parent::__construct(implode("\n", $message)); 24 } 25 26 public function getTransactions() { 27 return $this->transactions; 28 } 29 30 public function hasAnyEffect() { 31 return $this->anyEffect; 32 } 33 34 public function hasComment() { 35 return $this->hasComment; 36 } 37 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |