@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | /** @var int */ |
| 59 | 59 | private $openFrameIndex; |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $applicationPath |
|
| 63 | + */ |
|
| 61 | 64 | public static function createForThrowable(Throwable $throwable, ContextInterface $context, ?string $applicationPath = null): self |
| 62 | 65 | { |
| 63 | 66 | return (new static()) |
@@ -70,6 +73,9 @@ discard block |
||
| 70 | 73 | ->exceptionContext($throwable); |
| 71 | 74 | } |
| 72 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $applicationPath |
|
| 78 | + */ |
|
| 73 | 79 | public static function createForMessage(string $message, string $logLevel, ContextInterface $context, ?string $applicationPath = null): self |
| 74 | 80 | { |
| 75 | 81 | $stacktrace = Stacktrace::create($applicationPath); |
@@ -159,6 +165,9 @@ discard block |
||
| 159 | 165 | return $this; |
| 160 | 166 | } |
| 161 | 167 | |
| 168 | + /** |
|
| 169 | + * @param integer|null $index |
|
| 170 | + */ |
|
| 162 | 171 | public function openFrameIndex(?int $index) |
| 163 | 172 | { |
| 164 | 173 | $this->openFrameIndex = $index; |