BaseService::getLoggingFilePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: famoser
5
 * Date: 03/12/2016
6
 * Time: 20:04
7
 */
8
9
namespace Famoser\SyncApi\Services\Base;
10
11
12
use Famoser\SyncApi\Framework\ContainerBase;
13
14
/**
15
 * Class BaseService: to be extended by all services
16
 *
17
 * @package Famoser\SyncApi\Services\Base
18
 */
19
class BaseService extends ContainerBase
20
{
21
    /**
22
     * return the modulo used in the application
23
     *
24
     * @return string
25
     */
26
    protected function getModulo()
27
    {
28
        return $this->getSettingsArray()['api_modulo'];
29
    }
30
31
    /**
32
     * return the base path for the log files
33
     *
34
     * @return string
35
     */
36 7
    protected function getLoggingFilePath()
37
    {
38 7
        return $this->getSettingsArray()['log_file_path'];
39
    }
40
}