class Table implements Iterator, ArrayAccess, Countable (View source)

Traits

ArrayAccessTrait
IteratorTrait
CountableTrait
LoggerTrait
ConfigurationTrait
EventsTrait

Methods

__construct(Configuration $configuration, LoggerInterface $logger, Manager $events)

No description

TaskItem|null
get(string $name)

Get the task item

bool
add(string $name, string $class, string $description = null)

Add a new task to table

bool
delete(string $name)

Delete a task from table

bool
addBulk(array $tasks)

Load a bulk task list into the table

static 
create(Configuration $configuration, LoggerInterface $logger, Manager $events)

No description

Details

__construct(Configuration $configuration, LoggerInterface $logger, Manager $events)

Parameters

Configuration $configuration
LoggerInterface $logger
Manager $events

TaskItem|null get(string $name)

Get the task item

Parameters

string $name

Return Value

TaskItem|null

bool add(string $name, string $class, string $description = null)

Add a new task to table

Parameters

string $name
string $class
string $description

Return Value

bool

bool delete(string $name)

Delete a task from table

Parameters

string $name

Return Value

bool

bool addBulk(array $tasks)

Load a bulk task list into the table

Parameters

array $tasks

Return Value

bool

static create(Configuration $configuration, LoggerInterface $logger, Manager $events)

Parameters

Configuration $configuration
LoggerInterface $logger
Manager $events