Page MenuHomeDevCentral

Report.php
No OneTemporary

Report.php

<?php
namespace Keruald\Reporting;
class Report {
public function __construct (
public string $title,
/**
* @var ReportSection[]
*/
public array $sections = [],
/**
* @var array<string, mixed>
*/
public array $properties = [],
) { }
public function push (ReportSection $section) : void {
$this->sections[] = $section;
}
public function pushIfNotEmpty (ReportSection $report) : void {
if (!$report->isEmpty()) {
$this->push($report);
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 1, 18:04 (1 d, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3121529
Default Alt Text
Report.php (583 B)

Event Timeline