| 1 | <?php |
||
| 5 | class OperationResultList implements \Countable, \IteratorAggregate |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var OperationResult[] |
||
| 9 | */ |
||
| 10 | protected $operationResults = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Adds an operation result to the end of the list. |
||
| 14 | * |
||
| 15 | * @param OperationResult $operationResult |
||
| 16 | * @return OperationResultList |
||
| 17 | */ |
||
| 18 | public function addOperationResult(OperationResult $operationResult): OperationResultList |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Appends another operation result list to the end of this list. |
||
| 27 | * |
||
| 28 | * @param OperationResultList $other |
||
| 29 | * @return OperationResultList |
||
| 30 | */ |
||
| 31 | public function append(OperationResultList $other): OperationResultList |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function count() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function getIterator() |
||
| 53 | } |
||
| 54 |