22 lines
567 B
PHP
22 lines
567 B
PHP
<?php
|
|
|
|
namespace Hpz937\BillReminder\Model;
|
|
|
|
class Bill {
|
|
public int $id;
|
|
public string $dueDate; // Format: 'YYYY-MM-DD'
|
|
public float $amount;
|
|
public string $description;
|
|
public bool $isPaid;
|
|
|
|
public function __construct(int $id, string $dueDate, float $amount, string $description, bool $isPaid) {
|
|
$this->id = $id;
|
|
$this->dueDate = $dueDate;
|
|
$this->amount = $amount;
|
|
$this->description = $description;
|
|
$this->isPaid = $isPaid;
|
|
}
|
|
|
|
// Additional methods as needed, such as getters and setters
|
|
}
|