Identifier
in package
uses
Immutable
Read onlyYes
FinalYes
Identifier with an optional scheme (ISO/IEC 6523 ICD or another code list depending on the field).
Table of Contents
Properties
- $scheme : IdentifierScheme|RawCode|null
- $value : string
Methods
- __construct() : mixed
- of() : self
- schemeValue() : string|null
- with() : static
- Returns a copy with the given properties replaced.
Properties
$scheme
public
IdentifierScheme|RawCode|null
$scheme
= null
$value
public
string
$value
Methods
__construct()
public
__construct(string $value[, IdentifierScheme|RawCode|null $scheme = null ]) : mixed
Parameters
- $value : string
- $scheme : IdentifierScheme|RawCode|null = null
of()
public
static of(string $value[, IdentifierScheme|RawCode|string|null $scheme = null ]) : self
Parameters
- $value : string
- $scheme : IdentifierScheme|RawCode|string|null = null
Return values
selfschemeValue()
public
schemeValue() : string|null
Return values
string|nullwith()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>