MabeEnum\Enum::getValue PHP Method

getValue() final public method

Get the value of the enumerator
final public getValue ( ) : null | boolean | integer | float | string
return null | boolean | integer | float | string
    public final function getValue()
    {
        return $this->value;
    }

Usage Example

Beispiel #1
0
 /**
  * Returns the PHP native value of the enum.
  *
  * @return mixed
  */
 public function toNative()
 {
     return parent::getValue();
 }