| 1 | <?php |
||
| 14 | class TransactionalCommand extends AbstractCommand implements \IteratorAggregate |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Nested commands. |
||
| 18 | * |
||
| 19 | * @var CommandInterface[] |
||
| 20 | */ |
||
| 21 | private $commands = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function addCommand(CommandInterface $command) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getIterator() |
||
| 48 | |||
| 49 | public function execute() |
||
| 53 | |||
| 54 | public function complete() |
||
| 58 | |||
| 59 | public function rollBack() |
||
| 63 | } |