MyCLabs\Enum\Enum::getKey PHP Method

getKey() public method

Returns the enum key (i.e. the constant name).
public getKey ( ) : mixed
return mixed
    public function getKey()
    {
        return static::search($this->value);
    }