| 1 | <?php | ||
| 11 | abstract class Driver implements DriverContract | ||
| 12 | { | ||
| 13 | /** @var Collection */ | ||
| 14 | protected $parameters; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * Get driver short name. | ||
| 18 | * | ||
| 19 | * This name is used as an alias for configuration. | ||
| 20 | * | ||
| 21 | * @return string | ||
| 22 | */ | ||
| 23 | 1 | public function getShortName(): string | |
| 27 | |||
| 28 | /** | ||
| 29 | * Initialize driver. | ||
| 30 | * | ||
| 31 | * @param Collection $parameters | ||
| 32 | * | ||
| 33 | * @return Driver|DriverContract|static | ||
| 34 | */ | ||
| 35 | 2 | public function initialize(Collection $parameters): DriverContract | |
| 47 | |||
| 48 | /** | ||
| 49 | * Get driver parameters. | ||
| 50 | * | ||
| 51 | * @return Collection | ||
| 52 | */ | ||
| 53 | 1 | public function getParameters(): Collection | |
| 57 | |||
| 58 | /** | ||
| 59 | * Get template compiler instance. | ||
| 60 | * | ||
| 61 | * @return TemplateCompiler|null | ||
| 62 | */ | ||
| 63 | public function getTemplateCompiler(): ?TemplateCompiler | ||
| 67 | } | ||
| 68 |