Completed
Push — devops/catch-breaking-changes-... ( 88c9a6 )
by Bas
28s queued 18s
created

MigrationCreator::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace LaravelFreelancerNL\Aranguent\Migrations;
4
5
use Illuminate\Database\Migrations\MigrationCreator as IlluminateMigrationCreator;
6
use Illuminate\Filesystem\Filesystem;
7
8
class MigrationCreator extends IlluminateMigrationCreator
9
{
10
    /**
11
     * Create a new migration creator instance.
12
     *
13
     * @param Filesystem $files
14
     * @param string $customStubPath
15
     */
16 207
    public function __construct(Filesystem $files, $customStubPath)
17
    {
18 207
        $this->files = $files;
19 207
        $this->customStubPath = $customStubPath;
20
    }
21
22
    /**
23
     * Get the path to the stubs.
24
     *
25
     * @return string
26
     */
27
    public function stubPath()
28
    {
29
        return __DIR__ . '/../../stubs';
30
    }
31
}
32