| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 14 | class SignaturePolicy_NOutOf extends \Google\Protobuf\Internal\Message |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Generated from protobuf field <code>int32 n = 1;</code> |
||
| 18 | */ |
||
| 19 | private $n = 0; |
||
| 20 | /** |
||
| 21 | * Generated from protobuf field <code>repeated .common.SignaturePolicy rules = 2;</code> |
||
| 22 | */ |
||
| 23 | private $rules; |
||
| 24 | |||
| 25 | public function __construct() { |
||
| 26 | \GPBMetadata\Common\Policies::initOnce(); |
||
| 27 | parent::__construct(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Generated from protobuf field <code>int32 n = 1;</code> |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function getN() |
||
| 35 | { |
||
| 36 | return $this->n; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Generated from protobuf field <code>int32 n = 1;</code> |
||
| 41 | * @param int $var |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setN($var) |
||
| 45 | { |
||
| 46 | GPBUtil::checkInt32($var); |
||
| 47 | $this->n = $var; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Generated from protobuf field <code>repeated .common.SignaturePolicy rules = 2;</code> |
||
| 54 | * @return \Google\Protobuf\Internal\RepeatedField |
||
| 55 | */ |
||
| 56 | public function getRules() |
||
| 57 | { |
||
| 58 | return $this->rules; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Generated from protobuf field <code>repeated .common.SignaturePolicy rules = 2;</code> |
||
| 63 | * @param \Hyperledger\Fabric\Protos\Common\SignaturePolicy[]|\Google\Protobuf\Internal\RepeatedField $var |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setRules($var) |
||
| 67 | { |
||
| 68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Hyperledger\Fabric\Protos\Common\SignaturePolicy::class); |
||
| 69 | $this->rules = $arr; |
||
| 70 | |||
| 71 | return $this; |
||
| 72 | } |
||
| 76 |