mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:14:03 +00:00
* install PHP CS Fixer * Fix styling * remove StyleCI config * use config from archtechx/template * Fix styling * added `php-cs-fixer` * Update .php-cs-fixer.php * added GitHub token * Update ci.yml * Update ci.yml * Update ci.yml * php-cs-fixer workflow same as template Co-authored-by: Erik Gaal <me@erikgaal.nl> Co-authored-by: erikgaal <erikgaal@users.noreply.github.com>
25 lines
487 B
PHP
25 lines
487 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Concerns;
|
|
|
|
trait ExtendsLaravelCommand
|
|
{
|
|
protected function specifyTenantSignature(): void
|
|
{
|
|
$this->specifyParameters();
|
|
}
|
|
|
|
public function getName(): ?string
|
|
{
|
|
return static::getTenantCommandName();
|
|
}
|
|
|
|
public static function getDefaultName(): ?string
|
|
{
|
|
return static::getTenantCommandName();
|
|
}
|
|
|
|
abstract protected static function getTenantCommandName(): string;
|
|
}
|