Completed
Pull Request — master (#90)
by
unknown
04:49
created

MockClientStrategy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCandidates() 0 6 2
1
<?php
2
3
namespace Http\Discovery\Strategy;
4
5
use Http\Mock\Client as Mock;
6
7
/**
8
 * Find the Mock client.
9
 *
10
 * @internal
11
 * @final
12
 *
13
 * @author Sam Rapaport <[email protected]>
14
 */
15
final class MockClientStrategy implements DiscoveryStrategy
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public static function getCandidates($type)
21
    {
22
        return ($type === 'Http\Client\HttpClient')
23
            ? ['class' => Mock::class, 'condition' => Mock::class]
24
            : [];
25
    }
26
}
27