Completed
Pull Request — master (#64)
by Márk
06:42
created

PluginClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createLoopException() 0 4 1
1
<?php
2
3
namespace Http\Client\Plugin;
4
5
use Http\Client\Exception;
6
use Http\Client\Plugin\Exception\LoopException;
7
use Psr\Http\Message\RequestInterface;
8
9
/**
10
 * @author Joel Wurtz <[email protected]>
11
 *
12
 * @deprecated since version 1.1, to be removed in 2.0. Use {@link \Http\Client\Common\PluginClient} instead.
13
 */
14
final class PluginClient extends \Http\Client\Common\PluginClient
15
{
16
    /**
17
     * {@inheritdoc}
18
     *
19
     * Throw the correct loop exception.
20
     */
21 1
    protected function createLoopException(RequestInterface $request)
22
    {
23 1
        return new LoopException('Too many restarts in plugin client', $request);
0 ignored issues
show
Deprecated Code introduced by
The class Http\Client\Plugin\Exception\LoopException has been deprecated with message: since version 1.1, to be removed in 2.0. Use {@link \Http\Client\Common\Exception\LoopException} instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
24
    }
25
}
26