Completed
Push — master ( 7cd14b...a45726 )
by Dmitry
02:33
created

Convention::migrationTemplatePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Tarantool\Mapper\Integration\Laravel;
4
5
class Convention
6
{
7
    public function migrationTemplatePath()
8
    {
9
        return implode(DIRECTORY_SEPARATOR, [
10
            dirname(dirname(dirname(__DIR__))),
11
            'resources', 'views', 'migration.php',
12
        ]);
13
    }
14
15
    public function migrationPath()
16
    {
17
        return resource_path('migrations');
18
    }
19
20
    public function makeMigrationSignature()
21
    {
22
        return 'make:migration {name}';
23
    }
24
25
    public function migrateSignature()
26
    {
27
        return 'migrate';
28
    }
29
}
30