| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class TenantAwareSeeder extends Seeder |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name of the default connection. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $connection; |
||
| 15 | |||
| 16 | public function __construct(string $connection) |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function connection(string $connection): TenantAwareSeeder |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set the default connection name. |
||
| 28 | * |
||
| 29 | * @param string $connection |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function setConnection(string $connection) |
||
| 36 | } |
||
| 37 | |||
| 38 | abstract public function run(); |
||
| 39 | } |
||
| 40 |