← Code-Übersicht

WetellSessionHandle.php

Pfad: src/Domain/Rechnung/WetellSessionHandle.php

Ext: php

Größe: 419 Bytes

Geändert: 2026-07-16 18:16:36+02

<?php

declare(strict_types=1);

namespace Demo\Domain\Rechnung;

final readonly class WetellSessionHandle
{
    private function __construct(private int $sourceId)
    {
    }

    public static function issue(object $source): self
    {
        return new self(spl_object_id($source));
    }

    public function belongsTo(object $source): bool
    {
        return $this->sourceId === spl_object_id($source);
    }
}