Completed
Branch 0.4-dev (54e67b)
by Evgenij
02:52
created

NoLimitationSolver::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

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 1
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Async sockets
4
 *
5
 * @copyright Copyright (c) 2015-2016, 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 129
    public function initialize(RequestExecutorInterface $executor)
21
    {
22
        // empty body
23 129
    }
24
25
    /** {@inheritdoc} */
26 129
    public function finalize(RequestExecutorInterface $executor)
27
    {
28
        // empty body
29 129
    }
30
31
    /** {@inheritdoc} */
32 124
    public function decide(RequestExecutorInterface $executor, SocketInterface $socket, $totalSockets)
33
    {
34 124
        return self::DECISION_OK;
35
    }
36
}
37