Aplus Framework Docs

Seeder
in package

AbstractYes

Class Seeder.

Table of Contents

Properties

$database  : Database
$silent  : bool

Methods

__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

Methods

__construct()

Seeder constructor.

public __construct(Database $database) : mixed
Parameters
$database : Database

isSilent()

public isSilent() : bool
Return values
bool

run()

Run the Seeder.

public abstract run() : 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, Seeder|string>|string $seeds) : void
Parameters
$seeds : Seeder|array<int, Seeder|string>|string

isCli()

protected isCli() : bool
Return values
bool

        
On this page

Search results