Task Class¶
- class Task¶
Represents a Task in a User Journey
Section- __construct(string $name, int $score, bool $sort = false)¶
Creates a new task
- Parameters:
$name (
string) – The task name$score (
int) – The task score. 1 <= $score <= 5
- Returns:
A new instance of
Task- Return type:
- addActor(Actor ...$actor)¶
Add actor(s)
- withComment(string $comment)¶
Add a comment
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Taskwith the comment- Return type:
- withActor(Actor ...$actor)¶
Set actor(s)