mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
42 lines
926 B
PHP
Executable File
42 lines
926 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SiteTypes;
|
|
|
|
interface SiteType
|
|
{
|
|
public static function id(): string;
|
|
|
|
public function language(): string;
|
|
|
|
/**
|
|
* @param array<string, mixed> $input
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function createRules(array $input): array;
|
|
|
|
/**
|
|
* The fields here will be replaced in the Site model
|
|
*
|
|
* @param array<string, mixed> $input
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function createFields(array $input): array;
|
|
|
|
/**
|
|
* The fields here will be replaced in the type_data column as json
|
|
*
|
|
* @param array<string, mixed> $input
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function data(array $input): array;
|
|
|
|
public function install(): void;
|
|
|
|
/**
|
|
* @return array<array<string, string>>
|
|
*/
|
|
public function baseCommands(): array;
|
|
|
|
public function vhost(string $webserver): string;
|
|
}
|