Final Class Yiisoft\Db\Pgsql\Data\StructuredParser
| Inheritance | Yiisoft\Db\Pgsql\Data\StructuredParser |
|---|
Structured type representation to PHP array parser for PostgreSQL Server.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| parse() | Converts structured (composite) type value from PostgreSQL to PHP array. | Yiisoft\Db\Pgsql\Data\StructuredParser |
Method Details
Converts structured (composite) type value from PostgreSQL to PHP array.
| public (string|null)[]|null parse ( string $value ) | ||
| $value | string |
Value to parse. |
| return | (string|null)[]|null |
Parsed value. |
|---|---|---|
public function parse(string $value): ?array
{
if ($value[0] !== '(') {
return null;
}
return $this->parseComposite($value);
}
Signup or Login in order to comment.