29 lines
416 B
PHP
29 lines
416 B
PHP
<?php
|
|
|
|
namespace App\Plan;
|
|
|
|
use App\User\User;
|
|
|
|
class Plan
|
|
{
|
|
public function __construct(
|
|
private int $id,
|
|
private string $name,
|
|
private User $user,
|
|
) {}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function getUser(): User
|
|
{
|
|
return $this->user;
|
|
}
|
|
}
|