Completed
Push — develop ( 5bf394...6bbee1 )
by Tom
06:47
created

Module::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/*
3
 * @author Tom Klingenberg <https://github.com/ktomk>
4
 */
5
6
namespace N98\Magento\Api;
7
8
class Module implements ModuleInterface
9
{
10
    private $name;
11
12
    private $version;
13
14
    /**
15
     * Module constructor.
16
     *
17
     * @param string $name
18
     * @param string $version
19
     */
20
    public function __construct($name, $version)
21
    {
22
        $this->name = $name;
23
        $this->version = $version;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getVersion()
38
    {
39
        return $this->version;
40
    }
41
}
42