Passed
Push — master ( ad5a85...40ce26 )
by Arthur
23:10
created

ModelGeneratedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A includesMigration() 0 2 1
A isMongoModel() 0 2 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
13
use Foundation\Generator\Abstracts\ResourceGeneratedEvent;
14
15
/**
16
 * Class ModelGeneratedEvent
17
 * @package Foundation\Generator\Events
18
 */
19
class ModelGeneratedEvent extends ResourceGeneratedEvent
20
{
21
    public function isMongoModel(){
22
        return $this->getStub()->getOptions()['MONGO'];
23
    }
24
25
    public function includesMigration(){
26
        return $this->getStub()->getOptions()['MIGRATION'];
27
    }
28
}
29