Skip to content

Commit c17a7ec

Browse files
committed
PaymentException update
1 parent 5097f93 commit c17a7ec

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/PaymentException.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
class PaymentException extends \Exception
66
{
7+
/** @var string Подробности для логирования */
8+
private string $logText;
9+
710
/**
811
* Ошибка в формате Bootstrap
912
* @return string текст ошибки
@@ -19,4 +22,22 @@ public function getHtmlMessage(): string
1922
</div>
2023
';
2124
}
25+
26+
/**
27+
* @return string
28+
*/
29+
public function getLogText(): string
30+
{
31+
return $this->logText;
32+
}
33+
34+
/**
35+
* @param string $logText
36+
* @return PaymentException
37+
*/
38+
public function setLogText(string $logText): self
39+
{
40+
$this->logText = $logText;
41+
return $this;
42+
}
2243
}

0 commit comments

Comments
 (0)