ConsoleContext   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A contextMatch() 0 4 1
1
<?php
2
3
namespace WebinoAppLib\Context;
4
5
use WebinoAppLib\Event\AppEvent;
6
7
/**
8
 * Class ConsoleContext
9
 */
10
class ConsoleContext extends AbstractContext
11
{
12
    /**
13
     * Returns true for CLI environment
14
     *
15
     * @param AppEvent $event
16
     * @return bool
17
     */
18
    public function contextMatch(AppEvent $event)
19
    {
20
        return $event->getApp()->isConsole();
21
    }
22
}
23