We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84fdabe commit 1f9f789Copy full SHA for 1f9f789
src/Templating/CodeModel.php
@@ -13,11 +13,13 @@ class CodeModel
13
{
14
protected string $fileName;
15
protected string $content;
16
+ protected string $relativePath;
17
- public function __construct(string $fileName, string $content)
18
+ public function __construct(string $fileName, string $content, string $relativePath = '')
19
20
$this->fileName = $fileName;
21
$this->content = $content;
22
+ $this->relativePath = $relativePath;
23
}
24
25
public function getFileName(): string
@@ -29,4 +31,9 @@ public function getContent(): string
29
31
30
32
return $this->content;
33
34
+
35
+ public function getRelativePath(): string
36
+ {
37
+ return $this->relativePath;
38
+ }
39
0 commit comments