BaseCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 8 1
1
<?php
2
3
namespace Ps2alerts\Api\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
7
abstract class BaseCommand extends Command
8
{
9
    protected $db;
10
    protected $auraFactory;
11
    protected $container;
12
13
    protected function configure()
14
    {
15
        $container = include __DIR__ . '/../container.php';
16
17
        $this->container   = $container;
18
        $this->auraFactory = $container->get('Ps2alerts\Api\Factory\AuraFactory');
19
        $this->db          = $container->get('Database');
20
    }
21
}
22