Start work on updating services

This commit is contained in:
Deon George
2022-04-19 17:07:39 +10:00
parent ebf08ea414
commit 621a132e35
63 changed files with 1038 additions and 612 deletions

View File

@@ -6,6 +6,13 @@ use Carbon\Carbon;
interface ServiceItem
{
/**
* Months the service is contracted for.
*
* @return int
*/
public function getContractTermAttribute(): int;
/**
* Return the Service Description.
*
@@ -16,7 +23,7 @@ interface ServiceItem
/**
* Date the service expires
*/
public function getServiceExpireAttribute(): Carbon;
public function getServiceExpireAttribute(): ?Carbon;
/**
* Return the Service Name.
@@ -25,6 +32,13 @@ interface ServiceItem
*/
public function getServiceNameAttribute(): string;
/**
* Has this service expired
*
* @return bool
*/
public function hasExpired(): bool;
/**
* Is this service in a contract
*