Completed
Branch v2.0.0 (addc15)
by Alexander
03:27
created

EventsManager::getEventsManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @author Alexander Torosh <[email protected]>
4
 */
5
6
namespace Api;
7
8
use Phalcon\Events\Manager;
9
10
class EventsManager
11
{
12
    public function getEventsManager(): Manager
13
    {
14
        return new Manager();
15
        // @TODO
16
        /*$eventsManager->attach('test:event', function(Event $event, $app) {
17
            var_dump($event->getData());
18
        });*/
19
    }
20
}
21