Completed
Push — development ( a068ac...542d14 )
by Blake
01:54
created

PbMigrationTask::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Potatobase (https://github.com/PotatoPowered/potatobase)
4
 *
5
 * Licensed under The MIT License
6
 * For full copyright and license information, please see the LICENSE
7
 * Redistributions of files must retain the above copyright notice.
8
 *
9
 * @license     http://www.opensource.org/licenses/mit-license.php MIT License
10
 * @copyright   Copyright (c) Potato Powered Software
11
 * @link        http://potatopowered.net
12
 * @author      Blake Sutton <[email protected]>
13
 * @since       0.0.2
14
 * @version     0.0.1
15
 */
16
namespace Potatobase\Shell\Task;
17
18
use Migrations\Shell\Task\MigrationTask as BaseMigrationTask;
19
20
/**
21
 * Class PbMigrationTask
22
 *
23
 * This class will be our own bake task that we will use to leverage all of the functionality we have created in
24
 * this extension. This simply uses our own skeleton template so that we can leverage our own abstract migration class
25
 * for all newly baked migrations.
26
 *
27
 * @package Potatobase\Shell\Task
28
 */
29
class PbMigrationTask extends BaseMigrationTask
30
{
31
    /**
32
     * @return string The name of this bake task
33
     */
34
    public function name()
35
    {
36
        return 'pb_migration';
37
    }
38
39
    /**
40
     * @return string The path to the skeleton template
41
     */
42
    public function template()
43
    {
44
        return 'Potatobase.config/skeleton';
45
    }
46
}