aboutsummaryrefslogtreecommitdiff
path: root/src/view/MaintenanceBuilder.php
blob: f5c60ed99e2ecf2f7a38fb6e68c7caa22e945975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
// src/view/MaintenanceBuilder.php

declare(strict_types=1);

use App\Entity\Node;

class MaintenanceBuilder extends AbstractBuilder
{
	public function __construct(Node $node){
		$viewFile = self::VIEWS_PATH . $node->getName() . '.php';

		if(file_exists($viewFile)){
			ob_start();
		    require $viewFile;
		    $this->html = ob_get_clean();
		}
	}
}