Skip to content

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#

PropertyTypeDescription
$value readonlystring

Methods#

MethodDescription
->__construct()
->__toString()
->jsonSerialize()Serialises the code as its plain value, like an enum case.

__construct()#

public function __construct(string $value)
ParameterTypeDescription
$valuestring

__toString()#

public function __toString(): string
Returns
string

jsonSerialize()#

public function jsonSerialize(): string

Serialises the code as its plain value, like an enum case.

Returns
string

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.