TaskIteratorTrait
+ Inheritance diagram for TaskIteratorTrait:

Description

The resource can be iterated directly for tasks.

Public Methods

Generator< TaskgetIterator (array $filter=Task::GET_INCOMPLETE)
 
Task[] getTasks (array $filter=Task::GET_INCOMPLETE)
 
magic Task[] selectTasks (callable $filter, array $apiFilter=Task::GET_INCOMPLETE)
 fn( Task $task ): bool More...
 

Methods

◆ getIterator()

Generator<Task> getIterator ( array  $filter = Task::GET_INCOMPLETE)
abstract
Parameters
array$filter
Returns
Generator<Task>

Reimplemented in Tag, Section, and TaskList.

◆ getTasks()

Task [] getTasks ( array  $filter = Task::GET_INCOMPLETE)
Parameters
array$filter
Returns
Task[]

◆ selectTasks()

magic Task [] selectTasks ( callable  $filter,
array  $apiFilter = Task::GET_INCOMPLETE 
)

fn( Task $task ): bool

Returns
Task[]

Reimplemented in TaskList.