34 lines
848 B
PHP
34 lines
848 B
PHP
<?php
|
|
|
|
namespace App\Mailman\Data;
|
|
|
|
use Spatie\LaravelData\Attributes\MapName;
|
|
use Spatie\LaravelData\Attributes\MapOutputName;
|
|
use Spatie\LaravelData\Data;
|
|
use Spatie\LaravelData\Mappers\SnakeCaseMapper;
|
|
use Tests\RequestFactories\MailinglistFactory;
|
|
|
|
#[MapName(SnakeCaseMapper::class)]
|
|
class MailingList extends Data
|
|
{
|
|
public function __construct(
|
|
public string $description,
|
|
public string $displayName,
|
|
#[MapOutputName('name')]
|
|
public string $fqdnListname,
|
|
#[MapOutputName('id')]
|
|
public string $listId,
|
|
public string $listName,
|
|
public string $mailHost,
|
|
public int $memberCount,
|
|
public string $selfLink,
|
|
public int $volume,
|
|
) {
|
|
}
|
|
|
|
public static function toFactory(): MailinglistFactory
|
|
{
|
|
return MailinglistFactory::new();
|
|
}
|
|
}
|