21 lines
462 B
PHP
21 lines
462 B
PHP
<?php
|
|
|
|
namespace App\Channels;
|
|
|
|
use Carbon\CarbonImmutable;
|
|
|
|
/**
|
|
* An occupation reported by a portal: nights from startsOn up to (excluding) endsOn.
|
|
*/
|
|
final readonly class ExternalPeriod
|
|
{
|
|
public function __construct(
|
|
public string $uid,
|
|
public CarbonImmutable $startsOn,
|
|
public CarbonImmutable $endsOn,
|
|
public ?string $summary = null,
|
|
public array $properties = [],
|
|
public ?string $raw = null,
|
|
) {}
|
|
}
|