transactions = $transactions; $this->anyEffect = $any_effect; $message = array(); $message[] = 'Transactions have no effect:'; foreach ($this->transactions as $transaction) { $message[] = ' - '.$transaction->getNoEffectDescription(); } parent::__construct(implode("\n", $message)); } public function getTransactions() { return $this->transactions; } public function hasAnyEffect() { return $this->anyEffect; } public function hasComment() { return $this->hasComment; } }