forked from featherforums/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseDriver.php
More file actions
55 lines (46 loc) · 916 Bytes
/
Copy pathBaseDriver.php
File metadata and controls
55 lines (46 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php namespace Feather\Migrator\Drivers;
use DB;
use Feather\Models\Migrator;
class BaseDriver {
/**
* Illuminate application instance.
*
* @var Illuminate\Foundation\Application
*/
protected $app;
/**
* Migrator database record.
*
* @var Feather\Models\Migrator
*/
protected $migratorRecord;
/**
* Create a new base driver instance.
*
* @param Illuminate\Foundation\Application $app
* @return void
*/
public function __construct($app, $connection)
{
$this->app = $app;
}
/**
* Set the migrator database record.
*
* @param Feather\Models\Migrator $migrator
*/
public function setMigratorRecord(Migrator $migrator)
{
$this->migratorRecord = $migrator;
return $this;
}
/**
* Determine if the driver has a migrator database record.
*
* @return bool
*/
public function hasMigratorRecord()
{
return ! is_null($this->migratorRecord);
}
}