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