Payload::getPayload()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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