Completed
Push — master ( 39b3fc...3ebb26 )
by Sergey
12:04 queued 07:06
created

GeneratedDefinition   A

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
 * @package Onnov\JsonRpcServer\Definition
18
 */
19
class GeneratedDefinition extends RpcGeneralDefinition
20
{
21
    /**
22
     * Definitions of the available procedures in the api.
23
     * A key equals to the name of a procedure.
24
     *
25
     * @var RpcProcedureDefinition[]
26
     */
27
    private $methods;
28
29
    /**
30
     * @return RpcProcedureDefinition[]
31
     */
32
    public function getMethods(): array
33
    {
34
        return $this->methods;
35
    }
36
37
    /**
38
     * @param RpcProcedureDefinition[] $methods
39
     * @return GeneratedDefinition
40
     */
41
    public function setMethods(array $methods): self
42
    {
43
        $this->methods = $methods;
44
45
        return $this;
46
    }
47
}
48