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

EventsManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEventsManager() 0 8 1
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