blessing-skin-server/app/Events/RenderingFooter.php
2020-06-24 15:25:36 +08:00

25 lines
460 B
PHP

<?php
namespace App\Events;
class RenderingFooter extends Event
{
public $contents;
public function __construct(array &$contents)
{
$this->contents = &$contents;
}
public function addContent(string $content)
{
if ($content) {
if (!is_string($content)) {
throw new \Exception('Can not add non-string content', 1);
}
$this->contents[] = $content;
}
}
}