You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
536 B
24 lines
536 B
<?php
|
|
|
|
namespace App\Domains\Billing\Support\Schemas\Invoice;
|
|
|
|
use App\UI\Support\Schemas\AbstractGroupSchema;
|
|
use App\UI\Support\Schemas\InputSchema;
|
|
|
|
class CustomerInvoiceSchema extends AbstractGroupSchema
|
|
{
|
|
private bool $canAddItems = true;
|
|
|
|
public function cannotAddItems(): self {
|
|
$this->canAddItems = false;
|
|
return $this;
|
|
}
|
|
|
|
public function isCanAddItems(): bool {
|
|
return $this->canAddItems;
|
|
}
|
|
|
|
public function isCannotAddItems(): bool {
|
|
return !$this->canAddItems;
|
|
}
|
|
}
|
|
|