aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/src/Google/Protobuf/Internal/OneofOptions.php
diff options
context:
space:
mode:
authorGravatar Paul Yang <TeBoring@users.noreply.github.com>2018-05-25 13:43:22 -0700
committerGravatar GitHub <noreply@github.com>2018-05-25 13:43:22 -0700
commit4885b8058a93c1a16efe41fd1830d321e9bb2ce6 (patch)
tree0069b72edfd5639db022fb985b8a4e57abf6967c /php/src/Google/Protobuf/Internal/OneofOptions.php
parent449e532b087e43a45ca6d8eae640a6019e547aca (diff)
parentdadc95438ff732cb0c1d2961ce7bcf0d99d179b1 (diff)
Merge pull request #4675 from TeBoring/3.6.x
Cherry-pick php generated code changes into 3.6.x
Diffstat (limited to 'php/src/Google/Protobuf/Internal/OneofOptions.php')
-rw-r--r--php/src/Google/Protobuf/Internal/OneofOptions.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/php/src/Google/Protobuf/Internal/OneofOptions.php b/php/src/Google/Protobuf/Internal/OneofOptions.php
index e5b4633d..46b516f3 100644
--- a/php/src/Google/Protobuf/Internal/OneofOptions.php
+++ b/php/src/Google/Protobuf/Internal/OneofOptions.php
@@ -23,9 +23,19 @@ class OneofOptions extends \Google\Protobuf\Internal\Message
private $uninterpreted_option;
private $has_uninterpreted_option = false;
- public function __construct() {
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
+ * The parser stores options it doesn't recognize here. See above.
+ * }
+ */
+ public function __construct($data = NULL) {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
- parent::__construct();
+ parent::__construct($data);
}
/**