AbstractPort::loadGrams()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Cowglow\InstagramGallery\Infrastructure;
4
5
/**
6
 * Class AbstractPort
7
 * @package Cowglow\InstagramGallery\Infrastructure
8
 */
9
class AbstractPort
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $dataBind = '';
15
16
    /**
17
     * @var string
18
     */
19
    protected $dataType = '';
20
21
    /**
22
     * AbstractPort constructor.
23
     *
24
     * @param string $dataBind
25
     * @param string $dataType
26
     */
27
    public function __construct(string $dataBind, string $dataType)
0 ignored issues
show
Unused Code introduced by
The parameter $dataType is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

27
    public function __construct(string $dataBind, /** @scrutinizer ignore-unused */ string $dataType)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        $this->dataBind = $dataBind;
30
        $this->dataType = $dataBind;
31
    }
32
33
    /**
34
     * Load Grams
35
     *
36
     * @return array
37
     * @throws \Exception
38
     */
39
    protected function loadGrams(): array
40
    {
41
        return ['working on it!' => 'loading grams..'];
42
//        $dispatcher = new DispatchController($this->dataType);
43
//        return $dispatcher->Initialize();
44
    }
45
//
46
//    /**
47
//     * Get a configuration value
48
//     *
49
//     * @param null $key Optional: config value key
50
//     * @return mixed Configuration value(s)
51
//     */
52
//    public static function getConfig($key = null)
53
//    {
54
//        if ($key === null) {
55
//            return self::$config;
56
//        }
57
//
58
//        $config =& self::$config;
59
//        return $config->xpath('//'.$key);
60
//    }
61
}