abstract class BaseCommand extends Command

Properties

protected Medoo $database

Methods

__construct()

No description

Medoo
getDatabase()

Lazily establish the database connection right before use.

makeFormat(Article $article)

Create the format object from an Article.

configureArticle(Article $article)

Apply any additional configuration to an Article before processing.

string
getOutputDir(InputInterface $input)

Get the output directory for generated files.

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

Details

at line 19
__construct()

No description

at line 27
protected Medoo getDatabase()

Lazily establish the database connection right before use.

Return Value

Medoo

at line 39
abstract protected IFormat makeFormat(Article $article)

Create the format object from an Article.

Parameters

Article $article

Return Value

IFormat

at line 44
protected Article configureArticle(Article $article)

Apply any additional configuration to an Article before processing.

Parameters

Article $article

Return Value

Article

at line 52
protected string getOutputDir(InputInterface $input)

Get the output directory for generated files.

Parameters

InputInterface $input

Return Value

string

at line 57
protected void configure()

No description

Return Value

void

at line 83
protected int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int