API reference / Quittio \ Core \ Data \ References
ProjectReference
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\References\ProjectReference · Source
Project reference (BT-11). CII requires a name in addition to the identifier.
Properties#
| Property | Type | Description |
|---|---|---|
$id readonly | string | |
$name readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $id, ?string $name = null)| Parameter | Type | Description |
|---|---|---|
$id | string | |
$name | ?string = null |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static