Page MenuHomeDevCentral

ReportSection.php
No OneTemporary

ReportSection.php

<?php
namespace Keruald\Reporting;
class ReportSection {
public function __construct (
public string $title,
/**
* @var ReportEntry[]
*/
public array $entries = [],
) { }
public function push (string $title, string $text) : void {
$this->entries[] = new ReportEntry($title, $text);
}
public function isEmpty () : bool {
return count($this->entries) === 0;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 16, 13:13 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3139302
Default Alt Text
ReportSection.php (449 B)

Event Timeline