PAMI\Message\Message::getKey PHP Method

getKey() public method

Returns a key by name.
public getKey ( string $key ) : string
$key string Key name (i.e: Action).
return string
    public function getKey($key)
    {
        $key = strtolower($key);
        if (!isset($this->keys[$key])) {
            return null;
        }
        return (string) $this->keys[$key];
    }