Completed
Branch master (d1a89c)
by Andrés
05:54
created

AbstractSymfonyTask   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 19
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymfonyOptions() 0 4 1
A getOptions() 0 11 1
1
<?php
2
/*
3
 * This file is part of the Magallanes package.
4
 *
5
 * (c) Andrés Montañez <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Mage\Task\BuiltIn\Symfony;
12
13
use Mage\Task\AbstractTask;
14
15
/**
16
 * Abstract Symfony Task
17
 *
18
 * @author Andrés Montañez <[email protected]>
19
 */
20
abstract class AbstractSymfonyTask extends AbstractTask
21
{
22 14
    protected function getOptions()
23
    {
24 14
        $options = array_merge(
25 14
            ['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
26 14
            $this->getSymfonyOptions(),
27 14
            $this->runtime->getMergedOption('symfony'),
28 14
            $this->options
29
        );
30
31 14
        return $options;
32
    }
33
34 13
    protected function getSymfonyOptions()
35
    {
36 13
        return [];
37
    }
38
}
39