Passed
Push — master ( 590453...ad5a85 )
by Arthur
24:49
created

TestGeneratedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getType() 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 TestGeneratedEvent
17
 * @package Foundation\Generator\Events
18
 */
19
class TestGeneratedEvent extends ResourceGeneratedEvent
20
{
21
    public function getType(){
22
        return $this->getStub()->getOptions()['TYPE'];
23
    }
24
}
25