Admin
11 months ago
Helpers
1 year ago
Migrations
4 years ago
MigrationLogFactory.php
4 years ago
MigrationLogModel.php
4 years ago
MigrationLogRepository.php
1 year ago
MigrationLogServiceProvider.php
4 years ago
MigrationLogStatus.php
1 year ago
MigrationLogFactory.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\MigrationLog; |
| 4 | |
| 5 | /** |
| 6 | * Class MigrationLogFactory |
| 7 | * @package Give\MigrationLog |
| 8 | * |
| 9 | * @since 2.10.0 |
| 10 | */ |
| 11 | class MigrationLogFactory |
| 12 | { |
| 13 | /** |
| 14 | * Make MigrationModel instance |
| 15 | * |
| 16 | * @param string $id |
| 17 | * @param string $status |
| 18 | * @param mixed|null $error |
| 19 | * @param string|null $lastRun |
| 20 | * |
| 21 | * @return MigrationLogModel |
| 22 | */ |
| 23 | public function make($id, $status = '', $error = null, $lastRun = null) |
| 24 | { |
| 25 | return new MigrationLogModel($id, $status, $error, $lastRun); |
| 26 | } |
| 27 | } |
| 28 |