Parallel Class

class Parallel

Represents a parallel section

Implements ItemInterface

__construct()

Create a new Parallel

Returns:

A new Parallel instance

Return type:

Parallel

addItem(ItemInterface ...$item)

Add items to the Parallel section

Parameters:
  • ...$item (string ItemInterface) – The item(s)

Returns:

A new instance of Parallel with the item(s) added

Return type:

Parallel

withComment(string $comment)

Set a comment for the Parallel

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of Parallel with the comment

Return type:

Parallel

withItem(ItemInterface ...$item)

Set the Parallel section items

Parameters:
  • ...$item (string ItemInterface) – The item(s)

Returns:

A new instance of Parallel with the item(s)

Return type:

Parallel