Skip to content

Commit 07da8d5

Browse files
committed
add CodeModel
1 parent 60e8f0c commit 07da8d5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/Templating/CodeModel.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
/**
4+
* @author Mohammed Moussaoui
5+
* @copyright Copyright (c) Mohammed Moussaoui. All rights reserved.
6+
* @license MIT License. For full license information see LICENSE file in the project root.
7+
* @link https://github.com/DevNet-Framework
8+
*/
9+
10+
namespace DevNet\Cli\Templating;
11+
12+
class CodeModel
13+
{
14+
protected string $fileName;
15+
protected string $content;
16+
17+
public function __construct(string $fileName, string $content)
18+
{
19+
$this->fileName = $fileName;
20+
$this->content = $content;
21+
}
22+
23+
public function getFileName(): string
24+
{
25+
return $this->fileName;
26+
}
27+
28+
public function getContent(): string
29+
{
30+
return $this->content;
31+
}
32+
}

0 commit comments

Comments
 (0)