Passed
Pull Request — master (#3)
by Timothy
06:14
created

PeerTime   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 58
rs 10
wmc 5
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: gossip/message.proto
4
5
namespace Hyperledger\Fabric\Protos\Gossip;
6
7
use Google\Protobuf\Internal\GPBType;
8
use Google\Protobuf\Internal\RepeatedField;
9
use Google\Protobuf\Internal\GPBUtil;
10
11
/**
12
 * PeerTime defines the logical time of a peer's life
13
 *
14
 * Generated from protobuf message <code>gossip.PeerTime</code>
15
 */
16
class PeerTime extends \Google\Protobuf\Internal\Message
17
{
18
    /**
19
     * Generated from protobuf field <code>uint64 inc_num = 1;</code>
20
     */
21
    private $inc_num = 0;
22
    /**
23
     * Generated from protobuf field <code>uint64 seq_num = 2;</code>
24
     */
25
    private $seq_num = 0;
26
27
    public function __construct() {
28
        \GPBMetadata\Gossip\Message::initOnce();
29
        parent::__construct();
30
    }
31
32
    /**
33
     * Generated from protobuf field <code>uint64 inc_num = 1;</code>
34
     * @return int|string
35
     */
36
    public function getIncNum()
37
    {
38
        return $this->inc_num;
39
    }
40
41
    /**
42
     * Generated from protobuf field <code>uint64 inc_num = 1;</code>
43
     * @param int|string $var
44
     * @return $this
45
     */
46
    public function setIncNum($var)
47
    {
48
        GPBUtil::checkUint64($var);
49
        $this->inc_num = $var;
50
51
        return $this;
52
    }
53
54
    /**
55
     * Generated from protobuf field <code>uint64 seq_num = 2;</code>
56
     * @return int|string
57
     */
58
    public function getSeqNum()
59
    {
60
        return $this->seq_num;
61
    }
62
63
    /**
64
     * Generated from protobuf field <code>uint64 seq_num = 2;</code>
65
     * @param int|string $var
66
     * @return $this
67
     */
68
    public function setSeqNum($var)
69
    {
70
        GPBUtil::checkUint64($var);
71
        $this->seq_num = $var;
72
73
        return $this;
74
    }
75
76
}
77
78