| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 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 | } |
||
| 50 |