Seeder
in package
Class Seeder.
Table of Contents
- $database : Database
- $silent : bool
- __construct() : mixed
- Seeder constructor.
- getDatabase() : Database
- isSilent() : bool
- run() : void
- Run the Seeder.
- setSilent() : static
- call() : void
- Call seeders to run.
- isCli() : bool
- runCli() : void
- runSeed() : void
Properties
$database
protected
Database
$database
$silent
protected
bool
$silent
Methods
__construct()
Seeder constructor.
public
__construct(Database $database) : mixed
Parameters
- $database : Database
Return values
mixed —getDatabase()
public
getDatabase() : Database
Return values
Database —isSilent()
public
isSilent() : bool
Return values
bool —run()
Run the Seeder.
public
abstract run() : void
Return values
void —setSilent()
public
setSilent([bool $isSilent = true ]) : static
Parameters
- $isSilent : bool = true
Return values
static —call()
Call seeders to run.
protected
call(Seeder|array<int, \Framework\Database\Extra\Seeder|string>|string $seeds) : void
Parameters
- $seeds : Seeder|array<int, \Framework\Database\Extra\Seeder|string>|string
Return values
void —isCli()
protected
isCli() : bool
Return values
bool —runCli()
protected
runCli(Seeder $seed) : void
Parameters
- $seed : Seeder
Return values
void —runSeed()
protected
runSeed(Seeder $seed) : void
Parameters
- $seed : Seeder