1 | <?php |
||
13 | final class StemplerSource |
||
14 | { |
||
15 | /** |
||
16 | * Must be local stream. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private $filename; |
||
21 | |||
22 | /** |
||
23 | * @var null|string |
||
24 | */ |
||
25 | private $source = null; |
||
26 | |||
27 | /** |
||
28 | * @param string $filename |
||
29 | * @param string $code |
||
30 | */ |
||
31 | public function __construct(string $filename, string $code = null) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getFilename(): string |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getCode(): string |
||
52 | } |