Completed
Push — master ( b15ea3...332a47 )
by WEBEWEB
01:49
created

AbstractBootstrapEvent::getEventName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\BootstrapBundle\Event;
13
14
use Symfony\Component\EventDispatcher\Event;
15
16
/**
17
 * Abstract Bootstrap event.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Bundle\BootstrapBundle\Event
21
 * @abstract
22
 */
23
abstract class AbstractBootstrapEvent extends Event {
24
25
    /**
26
     * Event name.
27
     *
28
     * @var string
29
     */
30
    private $eventName;
31
32
    /**
33
     * Constructor.
34
     *
35
     * @param string $eventName The event name.
36
     */
37
    protected function __construct($eventName) {
38
        $this->eventName = $eventName;
39
    }
40
41
    /**
42
     * Get the event name.
43
     *
44
     * @return string Returns the event name.
45
     */
46
    public function getEventName() {
47
        return $this->eventName;
48
    }
49
50
}
51