public function getVariable($key) { if (!isset($this->variables[$key])) { return null; } return $this->variables[$key]; }