ListeProzesse.php
Pfad: src/Application/Prozess/ListeProzesse.php
Ext: php
Größe: 718 Bytes
Geändert: 2026-07-15 23:53:53+02
<?php
declare(strict_types=1);
namespace Demo\Application\Prozess;
use Demo\Domain\Prozess\ProzessRepository;
/**
* Anwendungsfall: liefert alle Prozesse fuer die Uebersicht.
*/
final class ListeProzesse
{
/** @var ProzessRepository Injizierter Port. */
private ProzessRepository $repository;
/**
* @param ProzessRepository $repository Datenzugriff.
*/
public function __construct(ProzessRepository $repository)
{
$this->repository = $repository;
}
/**
* Fuehrt den Anwendungsfall aus.
*
* @return list<\Demo\Domain\Prozess\Prozess> Alle Prozesse.
*/
public function execute(): array
{
return $this->repository->liste();
}
}