Completed
Push — master ( eff795...9418cb )
by Oliver
08:18
created

NinjaMutexAdapter   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 31
ccs 0
cts 12
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
3
namespace Metabor;
4
5
use MetaborStd\NamedInterface;
6
7
/**
8
 * @author Oliver Tischlinger
9
 */
10
class NinjaMutexAdapter implements NamedInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * @param string $name
19
     */
20
    public function __construct($name)
21
    {
22
        $this->setName($name);
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getName()
29
    {
30
        return $this->name;
31
    }
32
33
    /**
34
     * @param string $name
35
     */
36
    protected function setName($name)
37
    {
38
        $this->name = $name;
39
    }
40
}
41