API reference / Quittio \ Core \ Codes
RawCode
final readonly class in quittio/core · implements JsonSerializable, Stringable
Quittio\Core\Codes\RawCode · Source
A code that is not (yet) part of the code list enums shipped with the package.
Code lists are extended twice a year. The reader keeps unknown codes instead of failing, and writers accept them for codes that are valid but have no enum case.
Properties#
| Property | Type | Description |
|---|---|---|
$value readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->__toString() | |
->jsonSerialize() |
__construct()#
public function __construct(string $value)| Parameter | Type | Description |
|---|---|---|
$value | string |
__toString()#
public function __toString(): string- Returns
string
jsonSerialize()#
public function jsonSerialize(): string- Returns
string