| 1 | <?php |
||
| 8 | class FileExtension |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Template file extension. |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $fileExtension; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create new FileExtension instance. |
||
| 18 | * @param null|string $fileExtension |
||
| 19 | */ |
||
| 20 | public function __construct($fileExtension = 'php') |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Set the template file extension. |
||
| 27 | * @param null|string $fileExtension |
||
| 28 | * @return FileExtension |
||
| 29 | */ |
||
| 30 | public function set($fileExtension) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the template file extension. |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function get() |
||
| 45 | } |
||
| 46 |