Passed
Push — master ( 965fb6...8a373e )
by Arthur
21:36
created

MigrationGeneratedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isMongoMigration() 0 2 1
A getTableName() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 10.03.19
6
 * Time: 20:15
7
 */
8
9
namespace Foundation\Generator\Events;
10
11
12
use Foundation\Generator\Abstracts\ResourceGeneratedEvent;
13
14
/**
15
 * Class MigrationGeneratedEvent
16
 * @package Foundation\Generator\Events
17
 */
18
class MigrationGeneratedEvent extends ResourceGeneratedEvent
19
{
20
    public function getTableName()
21
    {
22
        return $this->getStubOption("table");
23
    }
24
25
    public function isMongoMigration(){
26
        return $this->getStubOption("mongo");
27
    }
28
}
29