NoLimitationSolver   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 24
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 4 1
A finalize() 0 4 1
A decide() 0 8 1
1
<?php
2
/**
3
 * Async sockets
4
 *
5
 * @copyright Copyright (c) 2015-2017, Efimov Evgenij <[email protected]>
6
 *
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
namespace AsyncSockets\RequestExecutor;
11
12
use AsyncSockets\Socket\SocketInterface;
13
14
/**
15
 * Class NoLimitationSolver
16
 */
17
class NoLimitationSolver implements LimitationSolverInterface
18
{
19
    /** {@inheritdoc} */
20 131
    public function initialize(RequestExecutorInterface $executor, ExecutionContext $executionContext)
21
    {
22
        // empty body
23 131
    }
24
25
    /** {@inheritdoc} */
26 131
    public function finalize(RequestExecutorInterface $executor, ExecutionContext $executionContext)
27
    {
28
        // empty body
29 131
    }
30
31
    /** {@inheritdoc} */
32 126
    public function decide(
33
        RequestExecutorInterface $executor,
34
        SocketInterface $socket,
35
        ExecutionContext $executionContext,
36
        $totalSockets
37
    ) {
38 126
        return self::DECISION_OK;
39
    }
40
}
41