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

BlockData   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 32
rs 10
wmc 3
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: common/common.proto
4
5
namespace Hyperledger\Fabric\Protos\Common;
6
7
use Google\Protobuf\Internal\GPBType;
8
use Google\Protobuf\Internal\RepeatedField;
9
use Google\Protobuf\Internal\GPBUtil;
10
11
/**
12
 * Generated from protobuf message <code>common.BlockData</code>
13
 */
14
class BlockData extends \Google\Protobuf\Internal\Message
15
{
16
    /**
17
     * Generated from protobuf field <code>repeated bytes data = 1;</code>
18
     */
19
    private $data;
20
21
    public function __construct() {
22
        \GPBMetadata\Common\Common::initOnce();
23
        parent::__construct();
24
    }
25
26
    /**
27
     * Generated from protobuf field <code>repeated bytes data = 1;</code>
28
     * @return \Google\Protobuf\Internal\RepeatedField
29
     */
30
    public function getData()
31
    {
32
        return $this->data;
33
    }
34
35
    /**
36
     * Generated from protobuf field <code>repeated bytes data = 1;</code>
37
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
38
     * @return $this
39
     */
40
    public function setData($var)
41
    {
42
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES);
43
        $this->data = $arr;
44
45
        return $this;
46
    }
47
48
}
49
50