BasicLockInformationProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLockInformation() 0 11 1
1
<?php
2
/**
3
 * This file is part of ninja-mutex.
4
 *
5
 * (C) Kamil Dziedzic <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace NinjaMutex\Lock;
12
13
14
class BasicLockInformationProvider implements LockInformationProviderInterface
15
{
16
    /**
17
     * @inheritdoc
18
     */
19 134
    public function getLockInformation()
20
    {
21 134
        $pid = getmypid();
22 134
        $hostname = gethostname();
23
24 134
        $params = array();
25 134
        $params[] = $pid;
26 134
        $params[] = $hostname;
27
28 134
        return $params;
29
    }
30
}
31