Documentation

Collection


Service\Collection

Class for collection of scenarios. Reproduces interfaces \Iterator, \Countable.


Method Description Available from version
public function __construct(array $scenarios)
Constructor. $scenarios - array with scenarios.
public function add(Scenario $scenario): self
Adds a new $scenario to collection.
public function playAll(): Result
Sequentially launches all collection scenarios. An error during scenario execution stops all the rest of scenarios.
Returns Result, containing data with collected all scenario contents.


© «Bitrix24», 2001-2022
Up