Abstract Class Yiisoft\Db\Profiler\Context\AbstractContext
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 __construct( string $method ): mixed | ||
| $method | string | |
public function __construct(
private readonly string $method,
) {}
| public asArray( ): array |
public function asArray(): array
{
return [
self::METHOD => $this->method,
self::EXCEPTION => $this->exception,
];
}
Defined in: Yiisoft\Db\Profiler\ContextInterface::getType()
| public abstract getType( ): string | ||
| return | string |
Type of the context. |
|---|---|---|
public function getType(): string;
| public setException( Throwable $e ): Yiisoft\Db\Profiler\Context\AbstractContext | ||
| $e | Throwable | |
public function setException(Throwable $e): static
{
$this->exception = $e;
return $this;
}
Signup or Login in order to comment.