PAMI\Message\Message::getVariable PHP Method

getVariable() public method

Returns a variable by name.
public getVariable ( string $key ) : string
$key string Variable name.
return string
    public function getVariable($key)
    {
        if (!isset($this->variables[$key])) {
            return null;
        }
        return $this->variables[$key];
    }