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 10namespace Google\Protobuf; 11 12class EnumValueDescriptor 13{ 14 private $name; 15 private $number; 16 17 /** 18 * @internal 19 */ 20 public function __construct($name, $number) 21 { 22 $this->name = $name; 23 $this->number = $number; 24 } 25 26 /** 27 * @return string 28 */ 29 public function getName() 30 { 31 return $this->name; 32 } 33 34 /** 35 * @return int 36 */ 37 public function getNumber() 38 { 39 return $this->number; 40 } 41} 42