forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RenderModel.php
42 lines (35 loc) · 967 Bytes
/
RenderModel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* This file is part of OpenEMR.
*
* @link https://github.com/openemr/openemr/tree/master
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
* @package OpenEMR\Events\Patient\Summary\Card
* @author Robert Down <[email protected]>
* @copyright Copyright (c) 2022 Robert Down <[email protected]>
*/
namespace OpenEMR\Events\Patient\Summary\Card;
class RenderModel implements RenderInterface
{
private $templateFileName;
private $variables;
public function __construct(string $templateFileName, array $variables)
{
$this->templateFileName = $templateFileName;
$this->variables = $variables;
}
/**
* @inheritDoc
*/
public function getTemplateFile(): string
{
return $this->templateFileName;
}
/**
* @inheritDoc
*/
public function getVariables(): array
{
return $this->variables;
}
}