| 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 | */ |
||
| 30 | public function __construct(string $filename, string $source = null) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function getFilename(): string |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function getSource(): string |
||
| 51 | } |