Payload   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 23
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayload() 0 4 1
A getPayload() 0 3 1
1
<?php
2
/**
3
 * Payload operates
4
 * User: moyo
5
 * Date: 23/10/2017
6
 * Time: 10:35 AM
7
 */
8
9
namespace Carno\RPC\Chips\Protocol;
10
11
trait Payload
12
{
13
    /**
14
     * @var string
15
     */
16
    private $payload = null;
17
18
    /**
19
     * @param string $data
20
     * @return static
21
     */
22
    public function setPayload(string $data) : self
23
    {
24
        $this->payload = $data;
25
        return $this;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getPayload() : string
32
    {
33
        return $this->payload;
34
    }
35
}
36