Final Class Yiisoft\Db\Profiler\Context\ConnectionContext
| Inheritance | Yiisoft\Db\Profiler\Context\ConnectionContext » Yiisoft\Db\Profiler\Context\AbstractContext |
|---|---|
| Implements | Yiisoft\Db\Profiler\ContextInterface |
Public Methods
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| EXCEPTION | 'exception' | Yiisoft\Db\Profiler\Context\AbstractContext | |
| METHOD | 'method' | Yiisoft\Db\Profiler\Context\AbstractContext |
Method Details
| public mixed __construct ( string $method ) | ||
| $method | string | |
public function __construct(private string $method) {}
| public array asArray ( ) |
public function asArray(): array
{
return [
self::METHOD => $this->method,
self::EXCEPTION => $this->exception,
];
}
| public Yiisoft\Db\Profiler\Context\ConnectionContext setException ( Throwable $e ) | ||
| $e | Throwable | |
public function setException(Throwable $e): static
{
$this->exception = $e;
return $this;
}
Signup or Login in order to comment.