adrema/app/Mailman/MailmanSettings.php

54 lines
1.0 KiB
PHP
Raw Normal View History

2022-10-18 15:04:47 +02:00
<?php
namespace App\Mailman;
2022-10-20 02:15:28 +02:00
use App\Mailman\Actions\SettingIndexAction;
use App\Mailman\Actions\SettingSaveAction;
2023-06-01 12:04:31 +02:00
use App\Setting\Contracts\Indexable;
use App\Setting\Contracts\Storeable;
2022-10-20 02:15:28 +02:00
use App\Setting\LocalSettings;
2022-10-18 15:04:47 +02:00
2023-06-01 12:04:31 +02:00
class MailmanSettings extends LocalSettings implements Storeable, Indexable
2022-10-18 15:04:47 +02:00
{
public ?string $base_url;
public ?string $username;
public ?string $password;
2022-10-20 03:22:50 +02:00
public bool $is_active;
2022-10-20 12:01:57 +02:00
public ?string $all_list;
public ?string $all_parents_list;
public ?string $active_leaders_list;
public ?string $passive_leaders_list;
2022-10-18 15:04:47 +02:00
public static function group(): string
{
return 'mailman';
}
2022-10-20 02:15:28 +02:00
public static function slug(): string
{
return 'mailman';
}
public static function indexAction(): string
{
return SettingIndexAction::class;
}
2023-06-01 12:04:31 +02:00
public static function storeAction(): string
2022-10-20 02:15:28 +02:00
{
return SettingSaveAction::class;
}
public static function title(): string
{
return 'Mailman';
}
2022-10-18 15:04:47 +02:00
}