Section Class

class Section

Represents a Section in a User Journey diagram

__construct(string $name)

Creates a new User Journey section

Parameters:
  • $name (string) – The section name

Returns:

A new instance of Section

Return type:

Section

addTask(Task ...$task)

Add task(s)

Parameters:
  • ...$task (Task) – The task(s)

Returns:

A new instance of Section with the task(s) added

Return type:

Section

withComment(string $comment)

Add a comment

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Section with the comment

Return type:

Section

withTask(Task ...$task)

Set task(s)

Parameters:
  • ...$task (Task) – The task(s)

Returns:

A new instance of Section with the task(s)

Return type:

Section