GeneratedDefinition   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 27
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethods() 0 3 1
A setMethods() 0 5 1
1
<?php
2
3
/**
4
 * Created by PhpStorm.
5
 * Project: json-rpc-server
6
 * User: sv
7
 * Date: 06.02.2021
8
 * Time: 11:01
9
 */
10
11
declare(strict_types=1);
12
13
namespace Onnov\JsonRpcServer\Definition;
14
15
/**
16
 * Class GeneratedDefinition
17
 *
18
 * @package Onnov\JsonRpcServer\Definition
19
 */
20
class GeneratedDefinition extends RpcGeneralDefinition
21
{
22
    /**
23
     * Definitions of the available procedures in the api.
24
     * A key equals to the name of a procedure.
25
     *
26
     * @var RpcProcedureDefinition[]
27
     */
28
    private $methods;
29
30
    /**
31
     * @return RpcProcedureDefinition[]
32
     */
33
    public function getMethods(): array
34
    {
35
        return $this->methods;
36
    }
37
38
    /**
39
     * @param  RpcProcedureDefinition[] $methods
40
     * @return GeneratedDefinition
41
     */
42
    public function setMethods(array $methods): self
43
    {
44
        $this->methods = $methods;
45
46
        return $this;
47
    }
48
}
49