PHP Class Protobuf\Enum

Author: Fabio B. Silva ([email protected])
Show file Open project: protobuf-php/protobuf

Protected Properties

Property Type Description
$name string Enum name
$value integer Enum value

Public Methods

Method Description
__construct ( string $name, integer $value )
__toString ( ) : string
name ( ) : string
value ( ) : integer

Method Details

__construct() public method

public __construct ( string $name, integer $value )
$name string
$value integer

__toString() public method

public __toString ( ) : string
return string

name() public method

public name ( ) : string
return string

value() public method

public value ( ) : integer
return integer

Property Details

$name protected property

Enum name
protected string $name
return string

$value protected property

Enum value
protected int $value
return integer