for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebTheory\Saveyour\Report;
use WebTheory\Saveyour\Contracts\Report\FormShieldReportInterface;
use WebTheory\Saveyour\Contracts\Report\ProcessedFormReportInterface;
class ProcessedFormReport implements ProcessedFormReportInterface
{
protected FormShieldReportInterface $shieldReport;
protected array $inputReports = [];
protected array $processReports = [];
public function __construct(FormShieldReportInterface $shieldReport, array $inputReports, array $processReports)
$this->shieldReport = $shieldReport;
$this->inputReports = $inputReports;
$this->processReports = $processReports;
}
public function shieldReport(): FormShieldReportInterface
return $this->shieldReport;
public function inputReports(): array
return $this->inputReports;
public function processReports(): array
return $this->processReports;
public function submissionIsValid(): bool
foreach ($this->inputReports as $report) {
if (!$report->submissionIsValid()) {
return false;
return true;