This package is abandoned and no longer maintained. No replacement package was suggested.

This library provides a value object for an Aktenzeichen.

1.1.0 2022-03-02 15:19 UTC

This package is auto-updated.

Last update: 2023-11-28 07:55:46 UTC


README

This library provides a value object for an Aktenzeichen.

CI

Installation

composer require gansel-rechtsanwaelte/aktenzeichen

Usage

<?php

declare(strict_types=1);

namespace App\Domain\Value;

use Gansel\Aktenzeichen\Aktenzeichen;

final class Akte
{
    /** @var Aktenzeichen */
    private $aktenzeichen;

    // ...

    private function __construct($value)
    {
        $this->aktenzeichen = Aktenzeichen::fromString($value['aktenzeichen']);

        // ...
    }

    public static function fromArray(array $value): self
    {
        return new self($value);
    }

    public function aktenzeichen(): Aktenzeichen
    {
        return $this->aktenzeichen;
    }

    // ...
}