update
This commit is contained in:
@@ -21,31 +21,31 @@ class Logger
|
||||
private array $context = [];
|
||||
private bool $isError = false;
|
||||
|
||||
public function setMessage(string $message): self
|
||||
public function setMessage(string $message): static
|
||||
{
|
||||
$this->message = $message;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setData(array $data): self
|
||||
public function setData(array $data): static
|
||||
{
|
||||
$this->data = $data;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setThrowable(Throwable $throwable): self
|
||||
public function setThrowable(Throwable $throwable): static
|
||||
{
|
||||
$this->throwable = $throwable;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setTraceId(string $traceId): self
|
||||
public function setTraceId(string $traceId): static
|
||||
{
|
||||
$this->traceId = $traceId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setContext(array $context): self
|
||||
public function setContext(array $context): static
|
||||
{
|
||||
$this->context = $context;
|
||||
return $this;
|
||||
@@ -56,7 +56,7 @@ class Logger
|
||||
return $this->isError;
|
||||
}
|
||||
|
||||
public function setErrorStatus(bool $isError): self
|
||||
public function setErrorStatus(bool $isError): static
|
||||
{
|
||||
$this->isError = $isError;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user