| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 19 | class ChaincodeQueryResponse extends \Google\Protobuf\Internal\Message |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Generated from protobuf field <code>repeated .protos.ChaincodeInfo chaincodes = 1;</code> |
||
| 23 | */ |
||
| 24 | private $chaincodes; |
||
| 25 | |||
| 26 | public function __construct() { |
||
| 27 | \GPBMetadata\Peer\Query::initOnce(); |
||
| 28 | parent::__construct(); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Generated from protobuf field <code>repeated .protos.ChaincodeInfo chaincodes = 1;</code> |
||
| 33 | * @return \Google\Protobuf\Internal\RepeatedField |
||
| 34 | */ |
||
| 35 | public function getChaincodes() |
||
| 36 | { |
||
| 37 | return $this->chaincodes; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Generated from protobuf field <code>repeated .protos.ChaincodeInfo chaincodes = 1;</code> |
||
| 42 | * @param \Hyperledger\Fabric\Protos\Peer\ChaincodeInfo[]|\Google\Protobuf\Internal\RepeatedField $var |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function setChaincodes($var) |
||
| 46 | { |
||
| 47 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Hyperledger\Fabric\Protos\Peer\ChaincodeInfo::class); |
||
| 48 | $this->chaincodes = $arr; |
||
| 49 | |||
| 50 | return $this; |
||
| 51 | } |
||
| 55 |