public function report(TransactionInterface $transaction)
{
if (!$this->logger) {
return;
}
if ($transaction->getState() == TransactionInterface::STATE_KO) {
$method = 'crit';
} else {
$method = 'info';
}
foreach (explode("\n", $transaction->getInformation()) as $message) {
call_user_func(array($this->logger, $method), $message);
}
}