28 lines
660 B
PHP
28 lines
660 B
PHP
<?php
|
|
|
|
namespace App\Support\Release;
|
|
|
|
final readonly class ShadowComparisonResult
|
|
{
|
|
public function __construct(
|
|
public string $module,
|
|
public string $scenario,
|
|
public string $status,
|
|
public array $legacy = [],
|
|
public array $modular = [],
|
|
public array $mismatches = [],
|
|
) {}
|
|
|
|
public function toArray(): array
|
|
{
|
|
return [
|
|
'module' => $this->module,
|
|
'scenario' => $this->scenario,
|
|
'status' => $this->status,
|
|
'legacy' => $this->legacy,
|
|
'modular' => $this->modular,
|
|
'mismatches' => $this->mismatches,
|
|
];
|
|
}
|
|
}
|