AbstractEvent::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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