Passed
Push — master ( fc580a...f42173 )
by Hector Luis
09:33 queued 12s
created

Connector   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 24
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isProductionEnvironment() 0 3 1
A getXmlGroupPath() 0 3 1
A getBaseUri() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Config Class
6
 * @category    Ticaje
7
 * @package     Ticaje_Dummy
8
 * @author      Hector Luis Barrientos <[email protected]>
9
 */
10
11
namespace Ticaje\Dummy\Configuration;
12
13
/**
14
 * Class Connector
15
 * @package Ticaje\Dummy\Configuration
16
 */
17
class Connector extends Base implements ConnectorInterface
18
{
19
    /**
20
     * @inheritDoc
21
     */
22
    public function getXmlGroupPath($storeId = null): string
23
    {
24
        return self::XML_GROUP_PATH;
25
    }
26
27
    /**
28
     * @inheritDoc
29
     */
30
    public function isProductionEnvironment($storeId = null): bool
31
    {
32
        return (bool)$this->getConfig(self::XML_SUB_GROUP_GENERAL_PATH . DIRECTORY_SEPARATOR . self::PRODUCTION_ENVIRONMENT_FIELD, $storeId);
33
    }
34
35
    /**
36
     * @inheritDoc
37
     */
38
    public function getBaseUri($storeId = null): string
39
    {
40
        return (string)$this->getConfig(self::XML_SUB_GROUP_GENERAL_PATH . DIRECTORY_SEPARATOR . self::BASE_URI_FIELD, $storeId);
41
    }
42
}
43