AbstractConfigCommand::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SilverLeague\Console\Command\Config;
4
5
use SilverLeague\Console\Command\SilverStripeCommand;
6
use SilverStripe\Config\Collections\ConfigCollectionInterface;
7
use SilverStripe\Core\Config\Config;
8
9
/**
10
 * Provide base functionality for retrieving configuration from SilverStripe
11
 *
12
 * @package silverstripe-console
13
 * @author  Robbie Averill <[email protected]>
14
 */
15
class AbstractConfigCommand extends SilverStripeCommand
16
{
17
    /**
18
     * Get the SilverStripe Config manifest/collection interface
19
     *
20
     * @return ConfigCollectionInterface
21
     */
22
    public function getConfig()
23
    {
24
        return Config::inst();
25
    }
26
}
27