Final Class Yiisoft\Db\Expression\Statement\WhenThen
| Inheritance | Yiisoft\Db\Expression\Statement\WhenThen |
|---|
Represents the condition and the result of a WHEN-THEN clause in a SQL CASE statement.
See also Yiisoft\Db\Expression\Statement\CaseX.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $then | mixed | Yiisoft\Db\Expression\Statement\WhenThen | |
| $when | mixed | Yiisoft\Db\Expression\Statement\WhenThen |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Db\Expression\Statement\WhenThen |
Property Details
Method Details
| public mixed __construct ( mixed $when, mixed $then ) | ||
| $when | mixed |
The value or condition for the
|
| $then | mixed |
The result to return if the condition is |
public function __construct(
public readonly mixed $when,
public readonly mixed $then,
) {}
Signup or Login in order to comment.