init plan entity
This commit is contained in:
parent
d1eb648b73
commit
957de13e71
1 changed files with 21 additions and 0 deletions
21
app/Plan/Plan.php
Normal file
21
app/Plan/Plan.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Plan;
|
||||
|
||||
class Plan
|
||||
{
|
||||
public function __construct(
|
||||
private int $id,
|
||||
private string $name,
|
||||
) {}
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue