1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 06:14:04 +00:00
This commit is contained in:
Samuel Štancl 2022-06-01 15:12:52 +02:00
commit 1e75221e12
26 changed files with 680 additions and 14 deletions

View file

@ -13,6 +13,7 @@ trait HasATenantsOption
{
return array_merge([
['tenants', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, '', null],
['with-pending', null, InputOption::VALUE_NONE, 'include pending tenants in query', null],
], parent::getOptions());
}
@ -26,6 +27,11 @@ trait HasATenantsOption
->cursor();
}
protected function withPending(): ?bool
{
return $this->option('with-pending') ? true : null;
}
public function __construct()
{
parent::__construct();