Skip to content

EmittedArtifact

The result of emitting a ValidatorPlan through a back-end: the PHP source text, a checksum of it (for —check drift detection without writing anything to disk), and a hint for where it would naturally be written.

Emitters never write files themselves — ArtifactWriter (and eventually a CLI) decides that.

final class EmittedArtifact

Since1.0.0
SourceSupport/Compiler/EmittedArtifact.php
PropertyTypeDescription
$checksumstringreadonly.
$phpSourcestringreadonly.
$targetHintstringreadonly.

public function __construct(string $phpSource, string $checksum, string $targetHint): mixed

ParameterTypeDescription
$phpSourcestring
$checksumstring
$targetHintstring

Returns mixed

MethodDescription
fromSource(string $phpSource, string $targetHint): EmittedArtifact

public static function fromSource(string $phpSource, string $targetHint): EmittedArtifact

ParameterTypeDescription
$phpSourcestring
$targetHintstring

Returns EmittedArtifact