mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-04 22:59:41 +00:00
refactor code
This commit is contained in:
1 parent
c641ec725d
commit
25248e7822
37 files changed
+180
-143
No files matched your search
@@ -2,18 +2,21 @@
|
||||
|
||||
namespace Anikeen\Id\Concerns;
|
||||
|
||||
use Anikeen\Id\Contracts\Billable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
trait HasBillable
|
||||
{
|
||||
public mixed $billable;
|
||||
public Billable|Model $billable;
|
||||
|
||||
public function setBillable(mixed $billable): self
|
||||
public function setBillable(Billable|Model $billable): self
|
||||
{
|
||||
$this->billable = $billable;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBillable(): mixed
|
||||
public function getBillable(): Billable
|
||||
{
|
||||
return $this->billable;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user