Passed
Pull Request — master (#3)
by Timothy
11:06 queued 05:35
created

KvQueryResult::initOnce()   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 25
Code Lines 20

Duplication

Lines 25
Ratio 100 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 2
eloc 20
c 1
b 1
f 1
nc 2
nop 0
dl 25
loc 25
rs 8.8571
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: ledger/queryresult/kv_query_result.proto
4
5
namespace GPBMetadata\Ledger\Queryresult;
6
7
class KvQueryResult
8
{
9
    public static $is_initialized = false;
10
11
    public static function initOnce() {
12
        $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
13
14
        if (static::$is_initialized == true) {
15
          return;
16
        }
17
        \GPBMetadata\Google\Protobuf\Timestamp::initOnce();
18
        $pool->internalAddGeneratedFile(hex2bin(
19
            "0a84030a286c65646765722f7175657279726573756c742f6b765f717565" .
20
            "72795f726573756c742e70726f746f120b7175657279726573756c742233" .
21
            "0a024b5612110a096e616d657370616365180120012809120b0a036b6579" .
22
            "180220012809120d0a0576616c756518032001280c22710a0f4b65794d6f" .
23
            "64696669636174696f6e120d0a0574785f6964180120012809120d0a0576" .
24
            "616c756518022001280c122d0a0974696d657374616d7018032001280b32" .
25
            "1a2e676f6f676c652e70726f746f6275662e54696d657374616d7012110a" .
26
            "0969735f64656c657465180420012808429a010a306f72672e6879706572" .
27
            "6c65646765722e6661627269632e70726f746f732e6c65646765722e7175" .
28
            "657279726573756c745a376769746875622e636f6d2f68797065726c6564" .
29
            "6765722f6661627269632f70726f746f732f6c65646765722f7175657279" .
30
            "726573756c74ca022c48797065726c65646765725c4661627269635c5072" .
31
            "6f746f735c4c65646765725c5175657279526573756c74620670726f746f" .
32
            "33"
33
        ));
34
35
        static::$is_initialized = true;
36
    }
37
}
38
39