An abstract class to use as the base for all tasks.

package Cactus
author Dave Widmer

 Methods

__construct()

__construct(string $path, Adapter $adapter) 

Parameters

$path

string

The path to the tasks folder

$adapter

\Cactus\Adapter

The adapter to connect to the data source

getAdapter()

getAdapter() : \Cactus\Adapter

Returns

\Cactus\AdapterThe adapter used to connect to the data source.

getPath()

getPath() : string

Returns

stringThe absolute path to the tasks directory.

Return all of the files in the path directory.

getFiles(boolean $reverse) : array

Parameters

$reverse

boolean

Find in reverse order?

Returns

arrayFile list

 Properties

 

The adapter used for the migrations

$adapter : \Cactus\Adapter

 

Absolute path to the tasks folder

$path : string