classUpsertLiteral
final class UpsertLiteral<TValue>
implements UpsertLiteralSource
Retains the type and identity of one expression literal.
Methods§
public function __construct(private TValue $value)Parameters
$value | TValue | Literal supplied by the caller. |
public function value(): TValueReturns
TValue The unchanged literal.Test cases 2
UpsertLiteralTest::testValuePreservesNestedArrayKeysAndValuescovers and callsUpsertLiteralTest::testValuePreservesObjectIdentitycovers and calls
Private surface 1§
Implementation details, listed for orientation only.
private TValue $valueTest cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
UpsertLiteralTest::testValuePreservesNestedArrayKeysAndValuescovers and callsUpsertLiteralTest::testValuePreservesObjectIdentitycovers and calls