Completed
Pull Request — master (#16)
by Steve
02:16 queued 22s
created

Response::getDice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: protos/dice.proto
4
5
namespace MeadSteve\DiceApi\Protos\V1;
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>MeadSteve.DiceApi.Protos.V1.Response</code>
13
 */
14
class Response extends \Google\Protobuf\Internal\Message
15
{
16
    /**
17
     * Generated from protobuf field <code>repeated .MeadSteve.DiceApi.Protos.V1.Dice dice = 1;</code>
18
     */
19
    private $dice;
20
21
    /**
22
     * Constructor.
23
     *
24
     * @param array $data {
25
     *     Optional. Data for populating the Message object.
26
     *
27
     *     @type \MeadSteve\DiceApi\Protos\V1\Dice[]|\Google\Protobuf\Internal\RepeatedField $dice
28
     * }
29
     */
30
    public function __construct($data = NULL) {
31
        \MeadSteve\DiceApi\Protos\V1\Meta\Dice::initOnce();
32
        parent::__construct($data);
33
    }
34
35
    /**
36
     * Generated from protobuf field <code>repeated .MeadSteve.DiceApi.Protos.V1.Dice dice = 1;</code>
37
     * @return \Google\Protobuf\Internal\RepeatedField
38
     */
39
    public function getDice()
40
    {
41
        return $this->dice;
42
    }
43
44
    /**
45
     * Generated from protobuf field <code>repeated .MeadSteve.DiceApi.Protos.V1.Dice dice = 1;</code>
46
     * @param \MeadSteve\DiceApi\Protos\V1\Dice[]|\Google\Protobuf\Internal\RepeatedField $var
47
     * @return $this
48
     */
49
    public function setDice($var)
50
    {
51
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \MeadSteve\DiceApi\Protos\V1\Dice::class);
52
        $this->dice = $arr;
53
54
        return $this;
55
    }
56
57
}
58
59