GetValuesResult   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace Lisachenko\Protocol\FCGI\Record;
4
5
use Lisachenko\Protocol\FCGI;
6
use Lisachenko\Protocol\FCGI\Record;
7
8
/**
9
 * GetValues API
10
 *
11
 * The Web server can query specific variables within the application.
12
 * The server will typically perform a query on application startup in order to to automate certain aspects of
13
 * system configuration.
14
 *
15
 * The application responds by sending a record {FCGI_GET_VALUES_RESULT, 0, ...} with the values supplied.
16
 * If the application doesn't understand a variable name that was included in the query, it omits that name from
17
 * the response.
18
 *
19
 * FCGI_GET_VALUES is designed to allow an open-ended set of variables.
20
 *
21
 * The initial set provides information to help the server perform application and connection management:
22
 *   FCGI_MAX_CONNS:  The maximum number of concurrent transport connections this application will accept,
23
 *                    e.g. "1" or "10".
24
 *   FCGI_MAX_REQS:   The maximum number of concurrent requests this application will accept, e.g. "1" or "50".
25
 *   FCGI_MPXS_CONNS: "0" if this application does not multiplex connections (i.e. handle concurrent requests
26
 *                    over each connection), "1" otherwise.
27
 *
28
 * @author Alexander.Lisachenko
29
 */
30
class GetValuesResult extends Params
31
{
32
33
    /**
34
     * Constructs a param request
35
     *
36
     * @param array $values
37
     */
38
    public function __construct(array $values = [])
39
    {
40 2
        parent::__construct($values);
41
        $this->type = FCGI::GET_VALUES_RESULT;
42 2
    }
43 2
44
}
45