AbstractEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
1
<?php
2
/**
3
 * NextFlow (http://github.com/nextflow)
4
 *
5
 * @link http://github.com/nextflow/nextflow-php for the canonical source repository
6
 * @copyright Copyright (c) 2014-2016 NextFlow (http://github.com/nextflow)
7
 * @license https://raw.github.com/nextflow/nextflow-php/master/LICENSE MIT
8
 */
9
10
namespace NextFlow\Core\Event;
11
12
use NextFlow\Core\Node\AbstractNode;
13
14
/**
15
 * The base final class for all events. An event is a node that has no input
16
 * connectors and is activated by code.
17
 */
18
abstract class AbstractEvent extends AbstractNode implements EventInterface
19
{
20
    /**
21
     * Gets the name of the event.
22
     *
23
     * @return string
24
     */
25
    public function getName()
26
    {
27
        return get_class($this);
28
    }
29
}
30