| 1 | <?php |
||
| 15 | class Transaction implements TransactionInterface |
||
| 16 | { |
||
| 17 | /** @var Connection */ |
||
| 18 | protected $connection; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Transaction constructor. |
||
| 22 | * @param Connection $connection |
||
| 23 | */ |
||
| 24 | public function __construct(Connection $connection) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param callable $callable |
||
| 31 | * @param array ...$args |
||
| 32 | * @return mixed |
||
| 33 | * @throws \Throwable |
||
| 34 | */ |
||
| 35 | public function call(callable $callable, ...$args) |
||
| 54 | } |