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.
Synopsis
Section titled “Synopsis”final class EmittedArtifact
| Since | 1.0.0 |
| Source | Support/Compiler/EmittedArtifact.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$checksum | string | readonly. |
$phpSource | string | readonly. |
$targetHint | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $phpSource, string $checksum, string $targetHint): mixed
| Parameter | Type | Description |
|---|---|---|
$phpSource | string | |
$checksum | string | |
$targetHint | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
fromSource(string $phpSource, string $targetHint): EmittedArtifact |
fromSource()
Section titled “fromSource()”public static function fromSource(string $phpSource, string $targetHint): EmittedArtifact
| Parameter | Type | Description |
|---|---|---|
$phpSource | string | |
$targetHint | string |
Returns EmittedArtifact