plan repo with create method

This commit is contained in:
Yisroel Baum 2026-02-23 10:41:06 +02:00
parent 957de13e71
commit de744c9b15
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?php
namespace App\Plan;
class CreatePlanDto
{
public function __construct(
public string $name,
) {}
}

View file

@ -0,0 +1,8 @@
<?php
namespace App\Plan;
interface PlanRepository
{
public function create(CreatePlanDto $dto): Plan;
}