mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-04 22:59:41 +00:00
23 lines
421 B
PHP
23 lines
421 B
PHP
<?php
|
|
|
|
namespace Anikeen\Id\Concerns;
|
|
|
|
use Anikeen\Id\Contracts\Billable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
trait HasBillable
|
|
{
|
|
public Billable|Model $billable;
|
|
|
|
public function setBillable(Billable|Model $billable): self
|
|
{
|
|
$this->billable = $billable;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getBillable(): Billable
|
|
{
|
|
return $this->billable;
|
|
}
|
|
} |