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

PluginClient::createLoopException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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