| 1 |
<?php |
| 2 |
|
| 3 |
// Protocol Buffers - Google's data interchange format |
| 4 |
// Copyright 2008 Google Inc. All rights reserved. |
| 5 |
// |
| 6 |
// Use of this source code is governed by a BSD-style |
| 7 |
// license that can be found in the LICENSE file or at |
| 8 |
// https://developers.google.com/open-source/licenses/bsd |
| 9 |
namespace Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal; |
| 10 |
|
| 11 |
class OneofField |
| 12 |
{ |
| 13 |
private $desc; |
| 14 |
private $field_name; |
| 15 |
private $number = 0; |
| 16 |
private $value; |
| 17 |
public function __construct($desc) |
| 18 |
{ |
| 19 |
$this->desc = $desc; |
| 20 |
} |
| 21 |
public function setValue($value) |
| 22 |
{ |
| 23 |
$this->value = $value; |
| 24 |
} |
| 25 |
public function getValue() |
| 26 |
{ |
| 27 |
return $this->value; |
| 28 |
} |
| 29 |
public function setFieldName($field_name) |
| 30 |
{ |
| 31 |
$this->field_name = $field_name; |
| 32 |
} |
| 33 |
public function getFieldName() |
| 34 |
{ |
| 35 |
return $this->field_name; |
| 36 |
} |
| 37 |
public function setNumber($number) |
| 38 |
{ |
| 39 |
$this->number = $number; |
| 40 |
} |
| 41 |
public function getNumber() |
| 42 |
{ |
| 43 |
return $this->number; |
| 44 |
} |
| 45 |
} |
| 46 |
|